com.waveset.util
Class XmlParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.waveset.util.ExceptionWrapper
com.waveset.util.WavesetException
com.waveset.util.XmlParseException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- XmlParseException
- public class XmlParseException
- extends WavesetException
An exception thrown to indicate one or more validation errors
encountered during form processing. This is used just to
break out of the normal control flow. Details of the validation errors
is normally left in the display.errors attribute of the view since
we may encounter more than one.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
code_id
|
Methods inherited from class com.waveset.util.WavesetException |
addMessage, addMessage, breakpoint, checkBreakpoint, enableBreakpoint, getLocalizedMessage, getLocalizedMessage, getMessage, getMessage, getMessage, getMessageObject, getMessageObject, getMessageOnly, getMessages |
Methods inherited from class com.waveset.util.ExceptionWrapper |
addException, clearExceptions, describeException, getAllMessages, getException, getException, getExceptionCount, hasException, printStackTrace, printStackTrace, printStackTrace, removeException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
XmlParseException
public XmlParseException(int line,
int col,
java.lang.String msg)
getLine
public int getLine()
getColumn
public int getColumn()
setLine
public void setLine(int i)
setColumn
public void setColumn(int i)
adjustLine
public void adjustLine(int delta)
format
public java.lang.String format()
getAbbreviatedMessage
public java.lang.String getAbbreviatedMessage()
- The error returned by Xerces often includes the list of valid elements
which may be long and have no newline breaks. This results
in an error window that can be may screens wide, which
is a problem for the configuration editor.
Could try to truncate it, but its better still if
we just rephrase it. Obviously not I18N and
may be version sensitive.
I'm not overloading getMessage or getLocalizedMessage
in case there are places where we do want the full message,
but probably the abbreviated one will always be best?