Class OpCliException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.arve0.onepassword.properties.OpCliException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionOpCliException(String message) Constructs a newOpCliExceptionwith the specified detail message.OpCliException(String message, Throwable cause) Constructs a newOpCliExceptionwith the specified detail message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OpCliException
Constructs a newOpCliExceptionwith the specified detail message. This constructor can be used to create an instance ofOpCliExceptionwith 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
Constructs a newOpCliExceptionwith the specified detail message and cause. This constructor is used to create an instance ofOpCliExceptionwhen 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 anotherThrowableinstance that provides more details about the root issue.
-