Exception: SAML::FormError

Inherits:
SAMLError
  • Object
show all
Defined in:
lib/saml/errors.rb

Instance Attribute Summary

Attributes inherited from SAMLError

#code, #context, #level, #tag

Instance Method Summary collapse

Constructor Details

#initialize(form, code = {}) ⇒ FormError

Returns a new instance of FormError.



50
51
52
53
54
55
56
# File 'lib/saml/errors.rb', line 50

def initialize(form, code = {})
  @code = code || form.error_code
  @tag = form.error_instrumentation_code
  @level = form.errors_hash[:level]
  @context = form.errors_context
  super(form.errors_message)
end