This repository has been archived by the owner on Apr 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add exception to specify bad input/data for a request/operation
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
api/src/main/java/org/gatein/management/api/exceptions/InvalidDataException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.gatein.management.api.exceptions; | ||
|
||
/** | ||
* @author <a href="mailto:nscavell@redhat.com">Nick Scavelli</a> | ||
*/ | ||
public class InvalidDataException extends ManagementException | ||
{ | ||
public InvalidDataException(final String message) | ||
{ | ||
super(message); | ||
} | ||
|
||
public InvalidDataException(final String message, final Throwable cause) | ||
{ | ||
super(message, cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters