-
Notifications
You must be signed in to change notification settings - Fork 332
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 #64 from caelum/wrapping_exceptions
Unwrapping exceptions for JSP files too
- Loading branch information
Showing
7 changed files
with
35 additions
and
33 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
24 changes: 24 additions & 0 deletions
24
vraptor-core/src/main/java/br/com/caelum/vraptor4/interceptor/ApplicationLogicException.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,24 @@ | ||
package br.com.caelum.vraptor4.interceptor; | ||
|
||
import br.com.caelum.vraptor4.InterceptionException; | ||
|
||
/** | ||
* When a controller or JSP throws an exception, we use this one to wrap it, so | ||
* we can unwrap after it leaves the interceptor stack | ||
* | ||
*/ | ||
@SuppressWarnings("serial") | ||
public class ApplicationLogicException extends InterceptionException { | ||
|
||
public ApplicationLogicException(String msg) { | ||
super(msg); | ||
} | ||
|
||
public ApplicationLogicException(String msg, Throwable e) { | ||
super(msg, e); | ||
} | ||
|
||
public ApplicationLogicException(Throwable e) { | ||
super(e); | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
...-core/src/main/java/br/com/caelum/vraptor4/interceptor/ControllerInvocationException.java
This file was deleted.
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
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