-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Cause Known
-
x86
-
linux
A DESCRIPTION OF THE REQUEST :
CannotUndoException/CannotRedoException do not have constructors that allow you to pass the message parameter in, which is a standard optional parameter for all Throwables.
JUSTIFICATION :
Need to add another contstructor to CannotUndoException and CannotRedoException so that you can pass messages in -- in case you want to say why you can't undo or redo -- in the way they're fired now, there's no way to pass any additional information into these exceptions.
---------- BEGIN SOURCE ----------
Not a test case -- but the solution code to solve it, if you want to just copy and paste it into the next release.
public class CannotRedoException extends RuntimeException {
public CannotRedoException() {
}
public CannotRedoException(String message) {
super(message);
}
}
public class CannotUndoException extends RuntimeException {
public CannotUndoException() {
}
public CannotUndoException(String message) {
super(message);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Write debugging output when the exception is thrown. Since a subclasss can't go past the default constructor in the superclass, there's no real of getting around this.
CannotUndoException/CannotRedoException do not have constructors that allow you to pass the message parameter in, which is a standard optional parameter for all Throwables.
JUSTIFICATION :
Need to add another contstructor to CannotUndoException and CannotRedoException so that you can pass messages in -- in case you want to say why you can't undo or redo -- in the way they're fired now, there's no way to pass any additional information into these exceptions.
---------- BEGIN SOURCE ----------
Not a test case -- but the solution code to solve it, if you want to just copy and paste it into the next release.
public class CannotRedoException extends RuntimeException {
public CannotRedoException() {
}
public CannotRedoException(String message) {
super(message);
}
}
public class CannotUndoException extends RuntimeException {
public CannotUndoException() {
}
public CannotUndoException(String message) {
super(message);
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Write debugging output when the exception is thrown. Since a subclasss can't go past the default constructor in the superclass, there's no real of getting around this.