public class ChannelException extends RuntimeException {
- public ChannelException(String message, Exception e) {
- super(message, e);
+ public ChannelException(String message, Exception cause) {
+ super(message, cause);
}
public ChannelException(String message) {
super(message);
}
+
+ public ChannelException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
}
throw new ChannelException("Unable to apply regular expression '" + matcher.pattern().pattern()
+ "' at line " + getCursor().getLine() + " and column " + getCursor().getColumn()
+ ", because it led to a stack overflow error."
- + " This error may be due to an inefficient use of alternations - see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050507");
+ + " This error may be due to an inefficient use of alternations - see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5050507", e);
} catch (IndexOutOfBoundsException e) {
return -1;
} catch (IOException e) {