Exception: Restruct::LockerError
- Defined in:
- lib/restruct/errors.rb
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(inner_exception) ⇒ LockerError
constructor
A new instance of LockerError.
- #message ⇒ Object
- #parse_message(message) ⇒ Object
Constructor Details
#initialize(inner_exception) ⇒ LockerError
36 37 38 |
# File 'lib/restruct/errors.rb', line 36 def initialize(inner_exception) @inner_exception = inner_exception end |
Instance Method Details
#backtrace ⇒ Object
44 45 46 |
# File 'lib/restruct/errors.rb', line 44 def backtrace @inner_exception.backtrace end |
#message ⇒ Object
40 41 42 |
# File 'lib/restruct/errors.rb', line 40 def ||= @inner_exception. end |
#parse_message(message) ⇒ Object
48 49 50 51 |
# File 'lib/restruct/errors.rb', line 48 def () match_data = /^(ERR Error running script.*@user_script.*user_script.*: )/.match match_data ? .gsub(match_data.captures.first,'').strip : end |