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

public class TransactionException extends RuntimeException
Thrown when an error occurred while trying to use a transaction.
Author:
Rob Spoor
Since:
2.0
See Also:
  • 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.