Exception: Jirarest2::ValueNotAllowedException

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/jirarest2/exceptions.rb

Overview

value is not allowed for this type of fields

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fieldname, allowed) ⇒ ValueNotAllowedException

Returns a new instance of ValueNotAllowedException.



62
63
64
65
# File 'lib/jirarest2/exceptions.rb', line 62

def initialize(fieldname,allowed)
  @fieldname = fieldname
  @allowed = allowed
end

Instance Attribute Details

#allowedObject (readonly)

Matching values



60
61
62
# File 'lib/jirarest2/exceptions.rb', line 60

def allowed
  @allowed
end

#fieldnameObject (readonly)

The name of the field the value does not match to



58
59
60
# File 'lib/jirarest2/exceptions.rb', line 58

def fieldname
  @fieldname
end