Exception: Triannon::LDPStorageError
- Defined in:
- lib/triannon/error.rb
Overview
used to keep HTTP response info from LDP
Instance Attribute Summary collapse
-
#ldp_resp_body ⇒ Object
Returns the value of attribute ldp_resp_body.
-
#ldp_resp_status ⇒ Object
Returns the value of attribute ldp_resp_status.
Instance Method Summary collapse
-
#initialize(message = nil, ldp_resp_status = nil, ldp_resp_body = nil) ⇒ LDPStorageError
constructor
A new instance of LDPStorageError.
Constructor Details
#initialize(message = nil, ldp_resp_status = nil, ldp_resp_body = nil) ⇒ LDPStorageError
Returns a new instance of LDPStorageError.
29 30 31 32 33 |
# File 'lib/triannon/error.rb', line 29 def initialize( = nil, ldp_resp_status = nil, ldp_resp_body = nil) super() self.ldp_resp_status = ldp_resp_status if ldp_resp_status self.ldp_resp_body = ldp_resp_body if ldp_resp_body end |
Instance Attribute Details
#ldp_resp_body ⇒ Object
Returns the value of attribute ldp_resp_body.
28 29 30 |
# File 'lib/triannon/error.rb', line 28 def ldp_resp_body @ldp_resp_body end |
#ldp_resp_status ⇒ Object
Returns the value of attribute ldp_resp_status.
28 29 30 |
# File 'lib/triannon/error.rb', line 28 def ldp_resp_status @ldp_resp_status end |