Exception: Ldbws::RequestError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ldbws::RequestError
- Defined in:
- lib/ldbws.rb
Overview
Raised when a request has resulted in an error that this library can make some sense of. This usually occurs due to something being wrong with a request like an invalid CRS code.
Unfortunately LDBWS doesn’t generate particularly helpful CRS codes, so the #details method will return a hashified version of the response from the server.
Thus, for a missing CRS, you’ll get:
{
faultcode: "soap:Server",
faultstring: "Unexpected server error",
detail: ""
}
Which isn’t especially useful. Best suggestion if you get this is to double-check your code to make sure the request is sane.
Instance Method Summary collapse
-
#details ⇒ Object
Returns the details of the error as a hash.
-
#initialize(details) ⇒ RequestError
constructor
:nodoc:.
Constructor Details
#initialize(details) ⇒ RequestError
:nodoc:
31 32 33 |
# File 'lib/ldbws.rb', line 31 def initialize(details) # :nodoc: @details = details end |
Instance Method Details
#details ⇒ Object
Returns the details of the error as a hash.
36 37 38 |
# File 'lib/ldbws.rb', line 36 def details @details end |