Exception: Jirarest2::ValueNotAllowedException
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Jirarest2::ValueNotAllowedException
- Defined in:
- lib/jirarest2/exceptions.rb
Overview
value is not allowed for this type of fields
Instance Attribute Summary collapse
-
#allowed ⇒ Object
readonly
Matching values.
-
#fieldname ⇒ Object
readonly
The name of the field the value does not match to.
Instance Method Summary collapse
-
#initialize(fieldname, allowed) ⇒ ValueNotAllowedException
constructor
A new instance of ValueNotAllowedException.
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
#allowed ⇒ Object (readonly)
Matching values
60 61 62 |
# File 'lib/jirarest2/exceptions.rb', line 60 def allowed @allowed end |
#fieldname ⇒ Object (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 |