Exception: WIP::Runner::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wip/runner/errors.rb

Direct Known Subclasses

InvalidArguments, InvalidCommand, Workflow::Error

Instance Method Summary collapse

Instance Method Details

#messageObject



13
14
15
16
17
18
19
# File 'lib/wip/runner/errors.rb', line 13

def message
  prefix = self.class.name.split('::').last
    .gsub(/([A-Z])/, " \\1")
    .strip
    .capitalize
  "#{prefix}: #{super}".sub(/\s\n/, "\n")
end