public class ServiceBusReceivedMessageContext extends Object
Modifier and Type | Method and Description |
---|---|
ServiceBusReceivedMessage |
getMessage()
Gets the message received from Service Bus.
|
String |
getSessionId()
Gets the session id of the message or that the error occurred in.
|
Throwable |
getThrowable()
Gets the throwable that occurred.
|
boolean |
hasError()
Gets whether or not an error occurred while receiving the next message.
|
public String getSessionId()
null
if there is no session.public Throwable getThrowable()
null
if there was no error.public ServiceBusReceivedMessage getMessage()
null
if an exception occurred.public boolean hasError()
true
if there was an error when receiving the next message; false
otherwise.Copyright © 2020 Microsoft Corporation. All rights reserved.