Class MessageException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sportradar.livedata.sdk.common.exceptions.SdkException
-
- com.sportradar.livedata.sdk.proto.common.MessageException
-
- All Implemented Interfaces:
Serializable
public class MessageException extends SdkException
An exception thrown when the message cannot be created from the data or message data cannot be written to the target type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageException(String message)
Initializes a new instance of theMessageException
class.MessageException(String message, Throwable cause)
Initializes a new instance of theMessageException
class.MessageException(Throwable cause)
Initializes a new instance of theMessageException
class.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MessageException
public MessageException(String message)
Initializes a new instance of theMessageException
class.- Parameters:
message
- the detail message (which is saved for later retrieval by thegetMessage()
method).
-
MessageException
public MessageException(Throwable cause)
Initializes a new instance of theMessageException
class.- Parameters:
cause
- the cause (which is saved for later retrieval by the {code getCause()} method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
MessageException
public MessageException(String message, Throwable cause)
Initializes a new instance of theMessageException
class.- Parameters:
message
- the detail message (which is saved for later retrieval by thegetMessage()
method).cause
- the cause (which is saved for later retrieval by the {code getCause()} method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
-