Exception: Brut::Framework::Errors::Bug

Inherits:
Brut::Framework::Error show all
Defined in:
lib/brut/framework/errors/bug.rb

Overview

Thrown when a codepath should never have been allowed to occur. This is useful is signaling that the system has some sort of bug in its integration. For example, attempting to perform an action that the UI should've prevented

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Bug

Returns a new instance of Bug.



7
8
9
10
11
12
13
# File 'lib/brut/framework/errors/bug.rb', line 7

def initialize(message=nil)
  if message.nil?
    super
  else
    super("BUG: #{message}")
  end
end