Sha256: 19a6909f058e9003393cc1e562b22a71a25c5b4304dd1200f082db5c15ffc449
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
module Gisele class Error < StandardError attr_reader :cause def initialize(msg, cause = $!) super(msg) @cause = cause end end # Internal errors certainly denote bugs in the implementation. # They are typically raised when a precondition is violated. class InternalError < Error end # Raised when an unexpected node is encountered in an AST-driven # transformation. class UnexpectedNodeError < InternalError end # Raised when a variable is not known. class NoSuchVariableError < Error end end # module Gisele
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gisele-0.6.0 | lib/gisele/errors.rb |