Exception: SystemCallError
- Defined in:
- lib/fOOrth/monkey_patch/exceptions.rb
Overview
Extensions to SystemCallError to support fOOrth.
Constant Summary
Constants inherited from Exception
Exception::FOORTH_EXCEPTION_CODE
Instance Method Summary collapse
-
#foorth_code ⇒ Object
Get the fOOrth error code for a system call error.
Methods inherited from Exception
#foorth_match, #foorth_message
Instance Method Details
#foorth_code ⇒ Object
Get the fOOrth error code for a system call error.
96 97 98 99 100 101 102 103 104 |
# File 'lib/fOOrth/monkey_patch/exceptions.rb', line 96 def foorth_code result = "E12" if /::/ =~ self.class.to_s result += ",#{$POSTMATCH}" end result + ':' end |