Class RemoteDomainExceptionHandler
java.lang.Object
ai.astraform.remote.domain.sdk.spring.RemoteDomainExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<RemoteDomainErrorEnvelope> handleProtocolError(RemoteDomainProtocolException exception) org.springframework.http.ResponseEntity<RemoteDomainErrorEnvelope> handleUnexpectedError(Exception exception)
-
Constructor Details
-
RemoteDomainExceptionHandler
public RemoteDomainExceptionHandler()
-
-
Method Details
-
handleProtocolError
@ExceptionHandler(RemoteDomainProtocolException.class) public org.springframework.http.ResponseEntity<RemoteDomainErrorEnvelope> handleProtocolError(RemoteDomainProtocolException exception) -
handleUnexpectedError
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<RemoteDomainErrorEnvelope> handleUnexpectedError(Exception exception)
-