Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
545 changed files
with
58,270 additions
and
58,448 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
21 changes: 10 additions & 11 deletions
21
src/main/java/de/mpg/imeji/exceptions/AlreadyExistsException.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,16 +1,15 @@ | ||
package de.mpg.imeji.exceptions; | ||
|
||
|
||
public class AlreadyExistsException extends ImejiException { | ||
private static final long serialVersionUID = 4123172628332785494L; | ||
|
||
/** | ||
* Constructor for a new {@link AlreadyExistsException} | ||
* | ||
* @param message | ||
*/ | ||
public AlreadyExistsException(String message) { | ||
super(message); | ||
} | ||
private static final long serialVersionUID = 4123172628332785494L; | ||
|
||
/** | ||
* Constructor for a new {@link AlreadyExistsException} | ||
* | ||
* @param message | ||
*/ | ||
public AlreadyExistsException(String message) { | ||
super(message); | ||
} | ||
|
||
} |
20 changes: 9 additions & 11 deletions
20
src/main/java/de/mpg/imeji/exceptions/AuthenticationError.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,18 +1,16 @@ | ||
package de.mpg.imeji.exceptions; | ||
|
||
|
||
public class AuthenticationError extends ImejiException { | ||
private static final long serialVersionUID = 6128275500671470459L; | ||
private static final long serialVersionUID = 6128275500671470459L; | ||
|
||
public static final String USER_MUST_BE_LOGGED_IN = | ||
"Need to be logged-in to proceed with the operation."; | ||
public static final String USER_MUST_BE_LOGGED_IN = "Need to be logged-in to proceed with the operation."; | ||
|
||
/** | ||
* Constructor for HTTP 401 Unauthorized | ||
*/ | ||
public AuthenticationError(String message) { | ||
super(message); | ||
minimizeStacktrace(); | ||
} | ||
/** | ||
* Constructor for HTTP 401 Unauthorized | ||
*/ | ||
public AuthenticationError(String message) { | ||
super(message); | ||
minimizeStacktrace(); | ||
} | ||
|
||
} |
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
20 changes: 9 additions & 11 deletions
20
src/main/java/de/mpg/imeji/exceptions/NotAllowedError.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,20 +1,18 @@ | ||
package de.mpg.imeji.exceptions; | ||
|
||
|
||
|
||
/** | ||
* | ||
*/ | ||
public class NotAllowedError extends ImejiException { | ||
private static final long serialVersionUID = -3504946406047760565L; | ||
public static final String NOT_ALLOWED = "Not enough permissions to proceed with the operation."; | ||
private static final long serialVersionUID = -3504946406047760565L; | ||
public static final String NOT_ALLOWED = "Not enough permissions to proceed with the operation."; | ||
|
||
/** | ||
* Constructor for HTTP 403 Forbidden | ||
*/ | ||
public NotAllowedError(String message) { | ||
super(message); | ||
minimizeStacktrace(); | ||
} | ||
/** | ||
* Constructor for HTTP 403 Forbidden | ||
*/ | ||
public NotAllowedError(String message) { | ||
super(message); | ||
minimizeStacktrace(); | ||
} | ||
|
||
} |
11 changes: 5 additions & 6 deletions
11
src/main/java/de/mpg/imeji/exceptions/NotFoundException.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,13 +1,12 @@ | ||
package de.mpg.imeji.exceptions; | ||
|
||
|
||
public class NotFoundException extends ImejiException { | ||
|
||
private static final long serialVersionUID = -6006945139992063194L; | ||
private static final long serialVersionUID = -6006945139992063194L; | ||
|
||
public NotFoundException(String message) { | ||
super(message, null); | ||
// minimizeStacktrace(); | ||
} | ||
public NotFoundException(String message) { | ||
super(message, null); | ||
// minimizeStacktrace(); | ||
} | ||
|
||
} |
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
Oops, something went wrong.