class Wire::VerificationError

raised in case of model elements not running or in other verification states

Attributes

element[RW]
message

verification (error) message

element_type

element type as string (i.e. ‘network’)

element_name

name of element within model

element

reference to model element

element_name[RW]
message

verification (error) message

element_type

element type as string (i.e. ‘network’)

element_name

name of element within model

element

reference to model element

element_type[RW]
message

verification (error) message

element_type

element type as string (i.e. ‘network’)

element_name

name of element within model

element

reference to model element

message[RW]
message

verification (error) message

element_type

element type as string (i.e. ‘network’)

element_name

name of element within model

element

reference to model element

Public Class Methods

new(message, element_type, element_name, element) click to toggle source

initalizes the verification error params:

message

verification (error) message

element_type

element type as string (i.e. ‘network’)

element_name

name of element within model

element

reference to model element

# File lib/wire/model/verification.rb, line 25
def initialize(message, element_type, element_name, element)
  @message = message
  @element_type = element_type
  @element_name = element_name
  @element = element
end

Public Instance Methods

to_s() click to toggle source

string representation

# File lib/wire/model/verification.rb, line 33
def to_s
  "VerificationError on #{@element_type} #{@element_name}: #{@message}"
end