Class ApicurioRegistryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.pipestream.registration.repository.ApicurioRegistryException
- All Implemented Interfaces:
Serializable
Exception thrown when operations with Apicurio Registry fail.
This allows callers to specifically catch and handle Apicurio-related failures
separately from other runtime exceptions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApicurioRegistryException(String message) Creates a new ApicurioRegistryException with a message.ApicurioRegistryException(String message, String serviceName, String artifactId, Throwable cause) Creates a new ApicurioRegistryException with context information.ApicurioRegistryException(String message, Throwable cause) Creates a new ApicurioRegistryException with a message and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the artifact ID that was being operated on when the failure occurred.Returns the service name that was being operated on when the failure occurred.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApicurioRegistryException
Creates a new ApicurioRegistryException with a message.- Parameters:
message- explanation of the failure
-
ApicurioRegistryException
-
ApicurioRegistryException
public ApicurioRegistryException(String message, String serviceName, String artifactId, Throwable cause) Creates a new ApicurioRegistryException with context information.- Parameters:
message- explanation of the failureserviceName- the service name that was being operated onartifactId- the artifact ID that was being operated oncause- the underlying exception that caused this failure
-
-
Method Details
-
getServiceName
Returns the service name that was being operated on when the failure occurred.- Returns:
- the service name, or
nullwhen none was supplied
-
getArtifactId
Returns the artifact ID that was being operated on when the failure occurred.- Returns:
- the artifact ID, or
nullwhen none was supplied
-