If this annotation is placed on a method the name attribute becomes a required parameter and one default attribute needs to be set. The value of the default attribute is used to set the filed on the resultant exception object.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: the default value to useThe default |
| public byte | Returns: the default value to useThe default boolean value if this annotation is used on a method. |
| public char | Returns: the default value to useThe default |
| public Class | Returns: the default value to useThe default |
| public double | Returns: the default value to useThe default |
| public float | Returns: the default value to useThe default |
| public int | Returns: the default value to useThe default |
| public long | Returns: the default value to useThe default |
| public String | |
| public short | Returns: the default value to useThe default |
| public String | Returns: the default value to useThe default |
| booleanValue | back to summary |
|---|---|
| public boolean booleanValue() The default
| |
| byteValue | back to summary |
|---|---|
| public byte byteValue() The default boolean value if this annotation is used on a method.
| |
| charValue | back to summary |
|---|---|
| public char charValue() The default
| |
| classValue | back to summary |
|---|---|
| public Class The default
| |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() The default
| |
| floatValue | back to summary |
|---|---|
| public float floatValue() The default
| |
| intValue | back to summary |
|---|---|
| public int intValue() The default
| |
| longValue | back to summary |
|---|---|
| public long longValue() The default
| |
| name | back to summary |
|---|---|
| public String name() The field name. If not specified, the parameter name is assumed to be the field name. This becomes a required attrubyte if this annotation is present on a method.
| |
| shortValue | back to summary |
|---|---|
| public short shortValue() The default
| |
| stringValue | back to summary |
|---|---|
| public String stringValue() The default
| |