Make RedirectException subclass java.lang.Error so app code knows it shouldn't catch it.
This commit is contained in:
parent
9ff623ac77
commit
bc1b067cf0
1 changed files with 4 additions and 2 deletions
|
@ -19,9 +19,11 @@ package helma.framework;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* RedirectException is thrown internally when a response is redirected to a
|
* RedirectException is thrown internally when a response is redirected to a
|
||||||
* new URL.
|
* new URL. Although this is not an Error, it subclasses java.lang.Error
|
||||||
|
* because it's not meant to be caught by application code (similar to
|
||||||
|
* java.lang.ThreadDeath).
|
||||||
*/
|
*/
|
||||||
public class RedirectException extends RuntimeException {
|
public class RedirectException extends Error {
|
||||||
String url;
|
String url;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue