public class ErrorValue extends StructValue
DataValue
implementation for vAPI errors.Constructor and Description |
---|
ErrorValue(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ErrorValue |
copy() |
DataType |
getType() |
accept, equals, getBoolean, getDouble, getField, getFieldNames, getFields, getInteger, getList, getName, getOptional, getSecret, getString, getStruct, hasField, hashCode, setField, setField, setField, setField, setField, setField, setOptionalField, setOptionalField, setOptionalField, setOptionalField, setOptionalField, setOptionalField, setOptionalField, toString
public ErrorValue(java.lang.String name)
Creates instance for given error name. The name is used as name
of the StructValue
represented by the instance.
name
- the error namepublic DataType getType()
getType
in interface DataValue
getType
in class StructValue
public ErrorValue copy()
copy
in interface DataValue
copy
in class StructValue
ConcurrentModificationException
if the DataValue is modified at the time of coping.