org.apache.xbean.server.main
Class FatalStartupError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.apache.xbean.server.main.FatalStartupError
All Implemented Interfaces:
Serializable

public class FatalStartupError
extends Error

Indicates that a fatal error occured while starting the server.

Since:
2.0
Author:
Dain Sundstrom
See Also:
Serialized Form

Field Summary
static int DEFAULT_EXIT_CODE
          The default exit code assigned to new exception if an exit code is not provided.
 
Constructor Summary
FatalStartupError(String message)
          Creates a FatalStartupError containing the specified message and the DEFAULT_EXIT_CODE.
FatalStartupError(String message, int exitCode)
          Creates a FatalStartupError containing the specified message and exit code.
FatalStartupError(String message, int exitCode, Throwable cause)
          Creates a FatalStartupError containing the specified message, cause by exception, and the specified exit code.
FatalStartupError(String message, Throwable cause)
          Creates a FatalStartupError containing the specified message, cause by exception, and the DEFAULT_EXIT_CODE.
 
Method Summary
 int getExitCode()
          Gets the number that should be passed to System.exit(int) when the virtual machine is halted.
 
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
 

Field Detail

DEFAULT_EXIT_CODE

public static final int DEFAULT_EXIT_CODE
The default exit code assigned to new exception if an exit code is not provided.

See Also:
Constant Field Values
Constructor Detail

FatalStartupError

public FatalStartupError(String message)
Creates a FatalStartupError containing the specified message and the DEFAULT_EXIT_CODE.

Parameters:
message - a descrption of the cause of the error

FatalStartupError

public FatalStartupError(String message,
                         int exitCode)
Creates a FatalStartupError containing the specified message and exit code.

Parameters:
message - a descrption of the cause of the error
exitCode - the exit code that should be passed to System.exit(int)

FatalStartupError

public FatalStartupError(String message,
                         Throwable cause)
Creates a FatalStartupError containing the specified message, cause by exception, and the DEFAULT_EXIT_CODE.

Parameters:
message - a descrption of the cause of the error
cause - the cause of this exception

FatalStartupError

public FatalStartupError(String message,
                         int exitCode,
                         Throwable cause)
Creates a FatalStartupError containing the specified message, cause by exception, and the specified exit code.

Parameters:
message - a descrption of the cause of the error
exitCode - the exit code that should be passed to System.exit(int)
cause - the cause of this exception
Method Detail

getExitCode

public int getExitCode()
Gets the number that should be passed to System.exit(int) when the virtual machine is halted.

Returns:
the exit code that should be passed to System.exit(int)


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.