-
public final class ChatCompositeErrorEvent
Event with error type and caused throwable.
-
-
Constructor Summary
Constructors Constructor Description ChatCompositeErrorEvent(String threadId, ChatCompositeErrorCode code, Throwable cause)
Create ChatCompositeErrorEvent with error code and caused throwable.
-
Method Summary
Modifier and Type Method Description String
getThreadId()
Returns threadId associated with error. Throwable
getCause()
Returns the cause of this throwable or {@code null}
if thecause is nonexistent or unknown.ChatCompositeErrorCode
getErrorCode()
Returns the event source. -
-
Constructor Detail
-
ChatCompositeErrorEvent
ChatCompositeErrorEvent(String threadId, ChatCompositeErrorCode code, Throwable cause)
Create ChatCompositeErrorEvent with error code and caused throwable.- Parameters:
code
- Error code ChatCompositeErrorCode.cause
- Throwable that caused an exception.
-
-
Method Detail
-
getThreadId
String getThreadId()
Returns threadId associated with error.
-
getCause
Throwable getCause()
Returns the cause of this throwable or
{@code null}
if thecause is nonexistent or unknown. (The cause is the throwable thatcaused this throwable to get thrown).
-
getErrorCode
ChatCompositeErrorCode getErrorCode()
Returns the event source.
-
-
-
-