Exception: Brut::Framework::Errors::Bug
- Inherits:
-
Brut::Framework::Error
- Object
- StandardError
- Brut::Framework::Error
- Brut::Framework::Errors::Bug
- 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
-
#initialize(message = nil) ⇒ Bug
constructor
A new instance of Bug.
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(=nil) if .nil? super else super("BUG: #{}") end end |