1 package frost.core
2
3 ====================================================================================================
4 Returned by methods to indicate that they encountered an error.
5 ====================================================================================================
6 @extendable
7 class Error : Immutable {
8 ================================================================================================
9 A human-readable description of the problem.
10 ================================================================================================
11 def message:String
12
13 ================================================================================================
14 Creates a new `Error`.
15 ================================================================================================
16 init(message:String) {
17 self.message := message
18 }
19
20 @override
21 function get_toString():String {
22 return "\{message}"
23 }
24 }