org.argouml.model
Class XmiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.argouml.model.UmlException
              extended by org.argouml.model.XmiException
All Implemented Interfaces:
java.io.Serializable

public class XmiException
extends UmlException

Exception for problems with XMI files.

See Also:
Serialized Form

Constructor Summary
XmiException(java.lang.String message)
          Construct an XmiException with the given message.
XmiException(java.lang.String message, java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber)
          Create a new SAXParseException.
XmiException(java.lang.String message, java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber, java.lang.Exception e)
          Create a new SAXParseException with an embedded exception.
XmiException(java.lang.String message, java.lang.Throwable c)
          Construct an exception with a message and a causing exception.
XmiException(java.lang.Throwable c)
          Construct an exception with a causing exception.
 
Method Summary
 int getColumnNumber()
          The column number of the end of the text where the exception occurred.
 int getLineNumber()
          The line number of the end of the text where the exception occurred.
 java.lang.String getPublicId()
          Get the public identifier of the entity where the exception occurred.
 java.lang.String getSystemId()
          Get the system identifier of the entity where the exception occurred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmiException

public XmiException(java.lang.String message)
Construct an XmiException with the given message.

Parameters:
message - the message

XmiException

public XmiException(java.lang.String message,
                    java.lang.Throwable c)
Construct an exception with a message and a causing exception.

Parameters:
message - the message
c - the cause of the exception

XmiException

public XmiException(java.lang.Throwable c)
Construct an exception with a causing exception.

Parameters:
c - the cause of the exception

XmiException

public XmiException(java.lang.String message,
                    java.lang.String publicId,
                    java.lang.String systemId,
                    int lineNumber,
                    int columnNumber)
Create a new SAXParseException.

Parameters:
message - The error or warning message.
publicId - The public identifier of the entity that generated the error or warning.
systemId - The system identifier of the entity that generated the error or warning.
lineNumber - The line number of the end of the text that caused the error or warning.
columnNumber - The column number of the end of the text that cause the error or warning.

XmiException

public XmiException(java.lang.String message,
                    java.lang.String publicId,
                    java.lang.String systemId,
                    int lineNumber,
                    int columnNumber,
                    java.lang.Exception e)
Create a new SAXParseException with an embedded exception.

Parameters:
message - The error or warning message, or null to use the message from the embedded exception.
publicId - The public identifier of the entity that generated the error or warning.
systemId - The system identifier of the entity that generated the error or warning.
lineNumber - The line number of the end of the text that caused the error or warning.
columnNumber - The column number of the end of the text that cause the error or warning.
e - Another exception to embed in this one.
Method Detail

getPublicId

public java.lang.String getPublicId()
Get the public identifier of the entity where the exception occurred.

Returns:
A string containing the public identifier, or null if none is available.

getSystemId

public java.lang.String getSystemId()
Get the system identifier of the entity where the exception occurred.

If the system identifier is a URL, it will have been resolved fully.

Returns:
A string containing the system identifier, or null if none is available.

getLineNumber

public int getLineNumber()
The line number of the end of the text where the exception occurred.

The first line is line 1.

Returns:
An integer representing the line number, or -1 if none is available.

getColumnNumber

public int getColumnNumber()
The column number of the end of the text where the exception occurred.

The first column in a line is position 1.

Returns:
An integer representing the column number, or -1 if none is available.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook