Package ke.ric.renderer.api
Class RendererException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ke.ric.renderer.api.RendererException
- All Implemented Interfaces:
Serializable
Provider failure carrying a stable machine-readable
RenderFailureCode.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOptional narrower reason within the broad failure category. -
Constructor Summary
ConstructorsConstructorDescriptionRendererException(RenderFailureCode code, String message) Creates a typed failure with UNSPECIFIED detail; a cause may still be supplied through initCause.RendererException(RenderFailureCode code, String message, Throwable cause) Creates a typed failure preserving its cause and using UNSPECIFIED detail.RendererException(RenderFailureCode code, RendererException.Detail detail, String message) Creates a failure with a non-null structured detail; message text is diagnostic, not a parsing contract.RendererException(RenderFailureCode code, RendererException.Detail detail, String message, Throwable cause) Creates a failure preserving the broad category, non-null narrower detail and original 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
-
RendererException
Creates a typed failure with UNSPECIFIED detail; a cause may still be supplied through initCause. -
RendererException
Creates a typed failure preserving its cause and using UNSPECIFIED detail. -
RendererException
Creates a failure with a non-null structured detail; message text is diagnostic, not a parsing contract. -
RendererException
public RendererException(RenderFailureCode code, RendererException.Detail detail, String message, Throwable cause) Creates a failure preserving the broad category, non-null narrower detail and original cause.
-
-
Method Details
-
code
Returns the stable failure category; callers should not parse exception text. -
detail
Returns a structured narrower reason without requiring message parsing.
-