Package ai.toloka.client.v1
Class TlkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ai.toloka.client.v1.TlkException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
NotFoundException,ServiceUnavailableException,ValidationException
public class TlkException extends java.lang.RuntimeException- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TlkException(TlkError<?> error, int statusCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()TlkError<?>getError()java.lang.StringgetMessage()java.lang.ObjectgetPayload()java.lang.StringgetRequestId()java.lang.StringgetServerMessage()intgetStatusCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TlkException
public TlkException(TlkError<?> error, int statusCode)
-
-
Method Detail
-
getError
public TlkError<?> getError()
-
getCode
public java.lang.String getCode()
-
getRequestId
public java.lang.String getRequestId()
-
getServerMessage
public java.lang.String getServerMessage()
-
getPayload
public java.lang.Object getPayload()
-
getStatusCode
public int getStatusCode()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-