| org.jaffa.datatypes.ValidationException org.jaffa.datatypes.exceptions.InvalidForeignKeyException
InvalidForeignKeyException | public class InvalidForeignKeyException extends ValidationException (Code) | | This is thrown by the FieldValidator if the value to be validated is not a valid foreign-key.
|
Constructor Summary | |
public | InvalidForeignKeyException() Constructs a new InvalidForeignKeyException. | public | InvalidForeignKeyException(String field) Constructs a new InvalidForeignKeyException.
Parameters: field - the field on which the exception is being thrown. | public | InvalidForeignKeyException(String field, Object[] args) Constructs a new InvalidForeignKeyException.
This will merge the 'field' and the 'args' into a single Object array and use that for constructing the message. | public | InvalidForeignKeyException(String field, Object[] args, Throwable cause) Constructs a new InvalidForeignKeyException.
This will merge the 'field' and the 'args' into a single Object array and use that for constructing the message. |
InvalidForeignKeyException | public InvalidForeignKeyException()(Code) | | Constructs a new InvalidForeignKeyException.
|
InvalidForeignKeyException | public InvalidForeignKeyException(String field)(Code) | | Constructs a new InvalidForeignKeyException.
Parameters: field - the field on which the exception is being thrown. This can be set later too. |
InvalidForeignKeyException | public InvalidForeignKeyException(String field, Object[] args)(Code) | | Constructs a new InvalidForeignKeyException.
This will merge the 'field' and the 'args' into a single Object array and use that for constructing the message. Hence, it is imperative that the error message has the field as the first argument.
Parameters: field - the field on which the exception is being thrown. This can be set later too. Parameters: args - the arguments (everything other than the field), if any, that need to be merged into the error message from the resource bundle. |
InvalidForeignKeyException | public InvalidForeignKeyException(String field, Object[] args, Throwable cause)(Code) | | Constructs a new InvalidForeignKeyException.
This will merge the 'field' and the 'args' into a single Object array and use that for constructing the message. Hence, it is imperative that the error message have the field as argument 0.
Parameters: field - the field on which the exception is being thrown. This can be set later too. Parameters: args - the arguments, if any, that need to be merged into the error message from the resource bundle. Parameters: cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown. |
Methods inherited from org.jaffa.datatypes.ValidationException | public void setField(String field)(Code)(Java Doc)
|
|
|