Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

Commit 5c60454

Browse files
author
Aaron Leung
committed
Basic error/exception object.
1 parent a5792b8 commit 5c60454

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

error.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace Sass {
2+
3+
struct Error {
4+
enum Type { read, write, syntax, evaluation };
5+
6+
size_t line_number;
7+
string file_name;
8+
string message;
9+
10+
Error(size_t line_number, string file_name, string message)
11+
: line_number(line_number), file_name(file_name), message(message)
12+
{ }
13+
14+
};
15+
16+
}

0 commit comments

Comments
 (0)