Exception: Nginxtra::Error::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Nginxtra::Error::Base
- Defined in:
- lib/nginxtra/error.rb
Overview
Base error with all the base functionality.
Direct Known Subclasses
ConvertFailed, IllegalState, InvalidConfig, MissingConfig, NginxDetected, RunFailed
Instance Method Summary collapse
-
#initialize(message, options = nil) ⇒ Base
constructor
A new instance of Base.
- #output(thor) ⇒ Object
Constructor Details
#initialize(message, options = nil) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/nginxtra/error.rb', line 5 def initialize(, = nil) @options = super() end |
Instance Method Details
#output(thor) ⇒ Object
10 11 12 13 |
# File 'lib/nginxtra/error.rb', line 10 def output(thor) = @options || { :header => } Nginxtra::Error.print_error thor, end |