Exception: Effective::ActionFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Effective::ActionFailed
- Defined in:
- app/models/effective/action_failed.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(message = nil, action = nil, subject = nil) ⇒ ActionFailed
constructor
A new instance of ActionFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil, action = nil, subject = nil) ⇒ ActionFailed
Returns a new instance of ActionFailed.
5 6 7 8 9 |
# File 'app/models/effective/action_failed.rb', line 5 def initialize( = nil, action = nil, subject = nil) @message = @action = action @subject = subject end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
3 4 5 |
# File 'app/models/effective/action_failed.rb', line 3 def action @action end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
3 4 5 |
# File 'app/models/effective/action_failed.rb', line 3 def subject @subject end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'app/models/effective/action_failed.rb', line 11 def to_s @message || I18n.t(:'unauthorized.default', :default => 'Action Failed') end |