Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.robtimus.os.windows.registry.TransactionException
- All Implemented Interfaces:
Serializable
Thrown when an error occurred while trying to use a transaction.
- Author:
- Rob Spoor
- Since:
- 2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the error code that was returned from the Windows API.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionException
public TransactionException(int errorCode) Creates a new exception.- Parameters:
errorCode- The error code that was returned from the Windows API.
-
-
Method Details
-
errorCode
public int errorCode()Returns the error code that was returned from the Windows API.- Returns:
- The error code that was returned from the Windows API.
-