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.String
getCode()
TlkError<?>
getError()
java.lang.String
getMessage()
java.lang.Object
getPayload()
java.lang.String
getRequestId()
java.lang.String
getServerMessage()
int
getStatusCode()
java.lang.String
toString()
-
-
-
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:
getMessage
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-