Exception: OpenReceive::NwcUriParseError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::NwcUriParseError
- Defined in:
- lib/openreceive/core.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#redacted ⇒ Object
readonly
Returns the value of attribute redacted.
Instance Method Summary collapse
-
#initialize(code, message, uri = nil) ⇒ NwcUriParseError
constructor
A new instance of NwcUriParseError.
Constructor Details
#initialize(code, message, uri = nil) ⇒ NwcUriParseError
Returns a new instance of NwcUriParseError.
22 23 24 25 26 |
# File 'lib/openreceive/core.rb', line 22 def initialize(code, , uri = nil) super() @code = code @redacted = uri.nil? ? nil : Nwc.redact_uri(uri) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
20 21 22 |
# File 'lib/openreceive/core.rb', line 20 def code @code end |
#redacted ⇒ Object (readonly)
Returns the value of attribute redacted.
20 21 22 |
# File 'lib/openreceive/core.rb', line 20 def redacted @redacted end |