com.izforge.izpack.util.os
Class SystemErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.izforge.izpack.util.os.SystemErrorException
All Implemented Interfaces:
Serializable

public class SystemErrorException
extends Exception

See Also:
Serialized Form

Constructor Summary
SystemErrorException()
          Constructs a system error exception with no descriptive information.
SystemErrorException(int errorCode, String message)
          Constructs a system error exception with the given Windows system error code and message.
SystemErrorException(String message)
          Constructs a system error exception with the given descriptive message.
 
Method Summary
 int getErrorCode()
          Returns the system error code.
 void setErrorCode(int errorCode)
          Sets the system error code.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemErrorException

public SystemErrorException()
Constructs a system error exception with no descriptive information.


SystemErrorException

public SystemErrorException(String message)
Constructs a system error exception with the given descriptive message.

Parameters:
message - A description of or information about the exception. Should not be null.

SystemErrorException

public SystemErrorException(int errorCode,
                            String message)
Constructs a system error exception with the given Windows system error code and message.

Parameters:
errorCode - The system error code.
message - A description of or information about the exception. Should not be null unless a cause is specified.
Method Detail

toString

public String toString()
Overrides:
toString in class Throwable

setErrorCode

public void setErrorCode(int errorCode)
Sets the system error code.

Parameters:
errorCode - the system error cod.

getErrorCode

public int getErrorCode()
Returns the system error code.

Returns:
the system error code.


Copyright © 2018. All rights reserved.