Exception: FreshJwt::ContractError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/contracts/issuer_contract.rb

Constant Summary collapse

DEFAULT_MESSAGE =
'something wrong with Contract'

Instance Method Summary collapse

Constructor Details

#initialize(msg = DEFAULT_MESSAGE, exception_type = 'custom') ⇒ ContractError

Returns a new instance of ContractError.



4
5
6
7
# File 'lib/contracts/issuer_contract.rb', line 4

def initialize(msg = DEFAULT_MESSAGE, exception_type='custom')
  @exception_type = exception_type
  super(msg) 
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/contracts/issuer_contract.rb', line 8

def message
  super
end