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



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

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

Instance Attribute Details

#eventObject (readonly)

Since:

  • 1.4.0



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

def event
  @event
end

#stringObject (readonly)

Since:

  • 1.4.0



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

def string
  @string
end