Class: BetterAuth::Adapters::MongoDB::MongoAdapterError

Inherits:
Error
  • Object
show all
Defined in:
lib/better_auth/mongo_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ MongoAdapterError

Returns a new instance of MongoAdapterError.



14
15
16
17
# File 'lib/better_auth/mongo_adapter.rb', line 14

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



12
13
14
# File 'lib/better_auth/mongo_adapter.rb', line 12

def code
  @code
end