Exception: Shojiku::MaterialUnreadable

Inherits:
Error
  • Object
show all
Defined in:
lib/shojiku/errors.rb

Overview

Key, certificate or trust-anchor bytes that could not be read.

Raised internally and caught by Client, which turns it into a failed Result: an unreadable key is an outcome of the operation, not a bug in the calling program. It carries the machine-readable kind the failure trace reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind, message) ⇒ MaterialUnreadable

Returns a new instance of MaterialUnreadable.



63
64
65
66
# File 'lib/shojiku/errors.rb', line 63

def initialize(kind, message)
  @kind = kind
  super(message)
end

Instance Attribute Details

#kindObject (readonly)

Returns the value of attribute kind.



61
62
63
# File 'lib/shojiku/errors.rb', line 61

def kind
  @kind
end