Exception: Nginxtra::Error::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/nginxtra/error.rb

Overview

Base error with all the base functionality.

Instance Method Summary collapse

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(message, options = nil)
  @options = options
  super(message)
end

Instance Method Details

#output(thor) ⇒ Object



10
11
12
13
# File 'lib/nginxtra/error.rb', line 10

def output(thor)
  options = @options || { :header => message }
  Nginxtra::Error.print_error thor, options
end