Exception: Karaden::Exception::KaradenException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/karaden/exception/karaden_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ KaradenException

Returns a new instance of KaradenException.



6
7
8
9
10
11
12
# File 'lib/karaden/exception/karaden_exception.rb', line 6

def initialize(message = nil)
  @code = nil
  @headers = {}
  @body = ''
  @error = nil
  super(message)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/karaden/exception/karaden_exception.rb', line 4

def body
  @body
end

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/karaden/exception/karaden_exception.rb', line 4

def code
  @code
end

#errorObject

Returns the value of attribute error.



4
5
6
# File 'lib/karaden/exception/karaden_exception.rb', line 4

def error
  @error
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/karaden/exception/karaden_exception.rb', line 4

def headers
  @headers
end