Exception: Crabstone::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Crabstone::Error
- Defined in:
- lib/crabstone/error.rb,
lib/crabstone/error.rb
Direct Known Subclasses
ErrArch, ErrCsh, ErrDetail, ErrDiet, ErrHandle, ErrMem, ErrMemSetup, ErrMode, ErrOK, ErrOption, ErrSkipData, ErrVersion, ErrX86ATT, ErrX86Intel, ErrX86MASM
Constant Summary collapse
- ERRNO =
{ 0 => ErrOK, 1 => ErrMem, 2 => ErrArch, 3 => ErrHandle, 4 => ErrCsh, 5 => ErrMode, 6 => ErrOption, 7 => ErrDetail, 8 => ErrMemSetup, 9 => ErrVersion, 10 => ErrDiet, 11 => ErrSkipData, 12 => ErrX86ATT, 13 => ErrX86Intel, 14 => ErrX86MASM }.freeze
Class Method Summary collapse
Class Method Details
.raise!(klass) ⇒ Object
68 69 70 71 72 |
# File 'lib/crabstone/error.rb', line 68 def self.raise!(klass) raise "Invalid error class: #{klass}" unless klass.superclass == self raise_errno!(ERRNO.invert[klass]) end |