Exception: Swgr2rb::Swgr2rbError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/prototypes/swgr2rb_error.rb

Overview

Swgr2rbError is a custom error that is raised when an error occurs that requires a change in user input. It is intercepted in bin/swgr2rb so that its backtrace is not returned to the user.

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ Swgr2rbError

Returns a new instance of Swgr2rbError.



9
10
11
# File 'lib/prototypes/swgr2rb_error.rb', line 9

def initialize(msg = nil)
  super("#{msg}\nTry 'swgr2rb --help' for more information")
end