Exception: Blacksheep::ActionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blacksheep/action_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, title: 'Error', identifier: 'undefined', status: :internal_server_error) ⇒ ActionError

Returns a new instance of ActionError.



7
8
9
10
11
12
13
# File 'lib/blacksheep/action_error.rb', line 7

def initialize(message, title: 'Error', identifier: 'undefined', status: :internal_server_error)
  @identifier = identifier
  @title = title
  @status = status

  super(message)
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



5
6
7
# File 'lib/blacksheep/action_error.rb', line 5

def identifier
  @identifier
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/blacksheep/action_error.rb', line 5

def status
  @status
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/blacksheep/action_error.rb', line 5

def title
  @title
end