public class ValidationException extends Exception {
/**
- * This class simply extends Exception (without addition additional functionality)
- * to provide an identifier for RequestsDB related exceptions on create, delete, query.
+ * This class simply extends Exception (without addition additional functionality) to provide an identifier for
+ * RequestsDB related exceptions on create, delete, query.
*
*
**/
private static final String REPLACE_SECOND_ELEMENT_KEY = "\\$SECOND_ELEMENT";
@Deprecated
- public ValidationException (String msg) {
- super (VALIDATION_FAIL.replaceAll (REPLACE_ELEMENT_KEY, msg));
+ public ValidationException(String msg) {
+ super(VALIDATION_FAIL.replaceAll(REPLACE_ELEMENT_KEY, msg));
}
public ValidationException(String msg, boolean overrideExistingMessage) {
super(overrideExistingMessage ? VALIDATION_FAIL.replaceAll(REPLACE_ELEMENT_KEY, msg) : msg);
}
- public ValidationException (String msg, Exception cause) {
- super (VALIDATION_FAIL.replaceAll (REPLACE_ELEMENT_KEY, msg), cause);
+ public ValidationException(String msg, Exception cause) {
+ super(VALIDATION_FAIL.replaceAll(REPLACE_ELEMENT_KEY, msg), cause);
}
+
public ValidationException(String firstElement, String secondElement) {
- super(UNMATCHED_ELEMENTS.replaceAll(REPLACE_ELEMENT_KEY, firstElement).replaceAll(REPLACE_SECOND_ELEMENT_KEY, secondElement));
+ super(UNMATCHED_ELEMENTS.replaceAll(REPLACE_ELEMENT_KEY, firstElement).replaceAll(REPLACE_SECOND_ELEMENT_KEY,
+ secondElement));
}
-}
\ No newline at end of file
+}