Exception: Ogc::Errors::ServiceError

Inherits:
OgcError
  • Object
show all
Defined in:
lib/ogc/errors/service_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_error) ⇒ ServiceError

Returns a new instance of ServiceError.



8
9
10
11
# File 'lib/ogc/errors/service_error.rb', line 8

def initialize(http_error)
  super(http_error.message)
  @code = http_error.code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



6
7
8
# File 'lib/ogc/errors/service_error.rb', line 6

def code
  @code
end