Package com.jtelegram.api.ex
Class InvalidResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.jtelegram.api.ex.TelegramException
-
- com.jtelegram.api.ex.MessageBasedException
-
- com.jtelegram.api.ex.InvalidResponseException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidResponseException extends MessageBasedException
This exception is called when the API returns a non-JSON response- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidResponseException(java.lang.String message, java.lang.String sensitiveAddition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSensitiveMessage()
A description of the error which could contain sensitive information (e.g.java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.ex.MessageBasedException
getDescription
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classTelegramException
-
getSensitiveMessage
public java.lang.String getSensitiveMessage()
A description of the error which could contain sensitive information (e.g. message contents) Separate from getMessage() in order to avoid unnecessary logging of sensitive data
-
-