Exception: MagicAdmin::MagicError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/magic-admin/errors.rb

Overview

MagicAdmin::MagicError class

Direct Known Subclasses

DIDTokenError, RequestError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ MagicError

Description:

The constructor allows you to specify error message

Arguments:

message: error message.


16
17
18
# File 'lib/magic-admin/errors.rb', line 16

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

attribute reader for error message



9
10
11
# File 'lib/magic-admin/errors.rb', line 9

def message
  @message
end