-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from plantbreeding/develop
Develop
- Loading branch information
Showing
71 changed files
with
1,502 additions
and
1,311 deletions.
There are no files selected for viewing
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
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
24 changes: 22 additions & 2 deletions
24
...core/src/main/java/org/brapi/schematools/core/brapischema/BrAPISchemaReaderException.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 |
---|---|---|
@@ -1,7 +1,27 @@ | ||
package org.brapi.schematools.core.brapischema; | ||
|
||
/** | ||
* Exception thrown during the reading of BrAPI JSON Schema | ||
*/ | ||
public class BrAPISchemaReaderException extends Exception { | ||
public BrAPISchemaReaderException(Exception e) { | ||
super(e); | ||
/** Constructs a new exception with the specified cause and a detail message of | ||
* (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). | ||
* This constructor is useful for exceptions that are little more than wrappers for other throwables | ||
* (for example, java.security.PrivilegedActionException). | ||
* @param cause the cause (which is saved for later retrieval by the {@link #getCause} method). | ||
* (A null value is permitted, and indicates that the cause is nonexistent or unknown.) | ||
*/ | ||
public BrAPISchemaReaderException(Exception cause) { | ||
super(cause) ; | ||
} | ||
|
||
/** Constructs a new exception with the specified detail message and cause. | ||
* Note that the detail message associated with cause is not automatically incorporated in this exception's detail message. | ||
* @param message – the detail message (which is saved for later retrieval by the getMessage() method). | ||
* @param cause – the cause (which is saved for later retrieval by the getCause() method). | ||
* (A null value is permitted, and indicates that the cause is nonexistent or unknown.) | ||
*/ | ||
public BrAPISchemaReaderException(String message, Exception cause) { | ||
super(message, cause) ; | ||
} | ||
} |
Oops, something went wrong.