org.tmatesoft.svn.core

Class SVNException

public class SVNException extends Exception

A main exception class that is used in the SVNKit library. All other SVNKit exception classes extend this one. Detailed information on the error (description, error code) is encapsulated inside an error message that is held by an SVNException.

Version: 1.1.1

Author: TMate Software Ltd.

Constructor Summary
SVNException(SVNErrorMessage errorMessage)
Creates an exception given an error message.
SVNException(SVNErrorMessage errorMessage, Throwable cause)
Creates an exception given an error message and the cause exception.
Method Summary
SVNErrorMessagegetErrorMessage()
Returns an error message provided to this exception object.
StringgetMessage()
Returns the informational message describing the cause of this exception.

Constructor Detail

SVNException

public SVNException(SVNErrorMessage errorMessage)
Creates an exception given an error message.

Parameters: errorMessage an error message

SVNException

public SVNException(SVNErrorMessage errorMessage, Throwable cause)
Creates an exception given an error message and the cause exception.

Parameters: errorMessage an error message cause the real cause of the error

Method Detail

getErrorMessage

public SVNErrorMessage getErrorMessage()
Returns an error message provided to this exception object.

Returns: an error message that contains details on the error

getMessage

public String getMessage()
Returns the informational message describing the cause of this exception.

Returns: an informational message

Copyright © 2004-2007 TMate Software Ltd. All Rights Reserved.