Exception: Triannon::LDPStorageError

Inherits:
Error
  • Object
show all
Defined in:
lib/triannon/error.rb

Overview

used to keep HTTP response info from LDP

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = nil, ldp_resp_status = nil, ldp_resp_body = nil)
  super(message)
  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_bodyObject

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_statusObject

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