Class OpCliException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.arve0.onepassword.properties.OpCliException
All Implemented Interfaces:
Serializable

public final class OpCliException extends RuntimeException
An exception that indicates an error occurred while interacting with the 1Password CLI.

The OpCliException class extends RuntimeException and provides constructors to represent both simple and wrapped exceptions with descriptive messages.

This exception is primarily used in the context of the 1Password CLI integration to signal issues such as command execution errors, timeouts, or unexpected output.

See Also:
  • Constructor Details

    • OpCliException

      public OpCliException(String message)
      Constructs a new OpCliException with the specified detail message. This constructor can be used to create an instance of OpCliException with a descriptive error message indicating the issue that occurred while interacting with the 1Password CLI.
      Parameters:
      message - the detail message providing additional context or information about the exception being thrown.
    • OpCliException

      public OpCliException(String message, Throwable cause)
      Constructs a new OpCliException with the specified detail message and cause. This constructor is used to create an instance of OpCliException when an underlying cause (another throwable) needs to be wrapped alongside a descriptive error message. This is particularly useful in scenarios where exceptions related to the 1Password CLI need to be contextualized with additional information about the error.
      Parameters:
      message - the detail message providing additional context or information about the exception being thrown.
      cause - the underlying cause of the exception, typically another Throwable instance that provides more details about the root issue.