Exception: Canis::PropertyVetoException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/canis/core/widgets/rwidget.rb

Overview

The property change is not acceptable, undo it. e.g. test2.rb

Since:

  • 1.4.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, event) ⇒ PropertyVetoException

Returns a new instance of PropertyVetoException.

Since:

  • 1.4.0



152
153
154
155
156
# File 'lib/canis/core/widgets/rwidget.rb', line 152

def initialize(string, event)
  @string = string
  @event = event
  super(string)
end

Instance Attribute Details

#eventObject (readonly)

Since:

  • 1.4.0



157
158
159
# File 'lib/canis/core/widgets/rwidget.rb', line 157

def event
  @event
end

#stringObject (readonly)

Since:

  • 1.4.0



157
158
159
# File 'lib/canis/core/widgets/rwidget.rb', line 157

def string
  @string
end