Exception: RailsSso::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- RailsSso::ResponseError
- Defined in:
- lib/rails_sso/response_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code) ⇒ ResponseError
Returns a new instance of ResponseError.
5 6 7 8 9 |
# File 'lib/rails_sso/response_error.rb', line 5 def initialize(code) @code = code super(I18n.t("rails_sso.errors.#{code}")) end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/rails_sso/response_error.rb', line 3 def code @code end |