Exception: TurboBoost::Commands::AbortError

Inherits:
CommandError
  • Object
show all
Defined in:
lib/turbo_boost/commands/errors.rb

Instance Attribute Summary

Attributes inherited from CommandError

#cause, #command, #http_status_code

Instance Method Summary collapse

Methods inherited from CommandError

#location

Constructor Details

#initialize(*messages, **kwargs) ⇒ AbortError

Returns a new instance of AbortError.



32
33
34
35
# File 'lib/turbo_boost/commands/errors.rb', line 32

def initialize(*messages, **kwargs)
  messages.prepend "TurboBoost Command intentionally aborted via `throw` in a `[before,after,around]_command` lifecycle callback!"
  super(messages, http_status: :abort_turbo_boost_command, **kwargs)
end