org.basex.core
Class BaseXException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.basex.core.BaseXException
All Implemented Interfaces:
java.io.Serializable

public final class BaseXException
extends java.io.IOException

Database exception, extending the IOException.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen
See Also:
Serialized Form

Constructor Summary
BaseXException(java.lang.Exception ex)
          Constructs an exception from the specified exception instance.
BaseXException(java.lang.String message, java.lang.Object... ext)
          Constructs an exception with the specified message and extension.
 
Method Summary
static java.lang.String message(java.lang.String text, java.lang.Object[] ext)
          Creates the error message from the specified text and extension array.
 
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

BaseXException

public BaseXException(java.lang.String message,
                      java.lang.Object... ext)
Constructs an exception with the specified message and extension.

Parameters:
message - message with optional placeholders
ext - optional message extension

BaseXException

public BaseXException(java.lang.Exception ex)
Constructs an exception from the specified exception instance.

Parameters:
ex - exception
Method Detail

message

public static java.lang.String message(java.lang.String text,
                                       java.lang.Object[] ext)
Creates the error message from the specified text and extension array.

Parameters:
text - text message with optional placeholders
ext - info extensions
Returns:
argument