com.waveset.util
Class XmlParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.waveset.util.ExceptionWrapper
              extended bycom.waveset.util.WavesetException
                  extended bycom.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
           
 
Constructor Summary
XmlParseException(int line, int col, java.lang.String msg)
           
 
Method Summary
 void adjustLine(int delta)
           
 java.lang.String format()
           
 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.
 int getColumn()
           
 int getLine()
           
 void setColumn(int i)
           
 void setLine(int i)
           
 
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
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

XmlParseException

public XmlParseException(int line,
                         int col,
                         java.lang.String msg)
Method Detail

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?