Class IntakeServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.pipeline.connector.intake.error.IntakeException
ai.pipeline.connector.intake.error.IntakeServiceException
- All Implemented Interfaces:
Serializable
A failure that originates beyond the request shape — resolving datasource
config, authenticating the API key, or proxying the body to
repository-service.
The cause carries the real gRPC/REST failure for
server-side logging; the client only ever sees the mapped
IntakeErrorCode and a curated message. The fromUpstream
factory is the single place that translates a dependency's failure into a
client-safe code, so no upstream message can leak from any call site.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntakeServiceException(IntakeErrorCode code, String clientMessage, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic IntakeServiceExceptionTranslate any failure thrown while resolving config or proxying the upload into a client-safe intake error.static IntakeServiceExceptionfromUpstreamHttpStatus(int status) Map a non-2xx HTTP status returned by repository-service to a client code, so the upstream's own error body is never forwarded to the caller.static IntakeServiceExceptionAn internal fault in the intake service itself (misconfig, bug, invariant break).static IntakeServiceExceptionof(IntakeErrorCode code, Throwable cause) A code with its default safe message, preserving the cause for logging.Methods inherited from class IntakeException
clientFacingMessage, clientMessage, code, errorId, httpStatus, isError, trackingToken, withTrackingTokenMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IntakeServiceException
-
-
Method Details
-
internal
An internal fault in the intake service itself (misconfig, bug, invariant break). -
of
A code with its default safe message, preserving the cause for logging. -
fromUpstream
Translate any failure thrown while resolving config or proxying the upload into a client-safe intake error. Centralizes gRPC- and REST-status mapping so no upstream message reaches the wire. -
fromUpstreamHttpStatus
Map a non-2xx HTTP status returned by repository-service to a client code, so the upstream's own error body is never forwarded to the caller.
-