HCoop
/
jackhill
/
mal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge pull request #377 from asarhaddon/fix-runtests-pre-eval
[jackhill/mal.git]
/
crystal
/
error.cr
1
require "./types"
2
3
module Mal
4
class ParseException < Exception
5
end
6
7
class EvalException < Exception
8
end
9
10
class RuntimeException < Exception
11
getter :thrown
12
13
def initialize(@thrown : Type)
14
super()
15
end
16
end
17
end
18
19
def eval_error(msg)
20
raise Mal::EvalException.new msg
21
end
22
23
def parse_error(msg)
24
raise Mal::ParseException.new msg
25
end