Class TelegramException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.camel.RuntimeCamelException
-
- org.apache.camel.component.telegram.TelegramException
-
- All Implemented Interfaces:
Serializable
,org.apache.camel.spi.HttpResponseAware
public class TelegramException extends org.apache.camel.RuntimeCamelException implements org.apache.camel.spi.HttpResponseAware
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TelegramException(String message, int httpResponseCode, String httpResponseStatus)
TelegramException(String message, Throwable cause)
TelegramException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHttpResponseCode()
String
getHttpResponseStatus()
void
setHttpResponseCode(int httpResponseCode)
void
setHttpResponseStatus(String httpResponseStatus)
-
Methods inherited from class org.apache.camel.RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getHttpResponseCode
public int getHttpResponseCode()
- Specified by:
getHttpResponseCode
in interfaceorg.apache.camel.spi.HttpResponseAware
-
setHttpResponseCode
public void setHttpResponseCode(int httpResponseCode)
- Specified by:
setHttpResponseCode
in interfaceorg.apache.camel.spi.HttpResponseAware
-
getHttpResponseStatus
public String getHttpResponseStatus()
- Specified by:
getHttpResponseStatus
in interfaceorg.apache.camel.spi.HttpResponseAware
-
setHttpResponseStatus
public void setHttpResponseStatus(String httpResponseStatus)
- Specified by:
setHttpResponseStatus
in interfaceorg.apache.camel.spi.HttpResponseAware
-
-