Standard exception you can throw to exit with a given status code. Generally, you should prefer OptparsePlus::Main#exit_now! over using this directly, however you may wish to create a rich hierarchy of exceptions that extend from this in your app, so this is provided if you wish to do so.

Methods
N
Attributes
[R] exit_code
Class Public methods
new(exit_code,message=nil)

Create an Error with the given status code and message

# File lib/optparse_plus/error.rb, line 9
def initialize(exit_code,message=nil)
  super(message)
  @exit_code = exit_code
end