ServiceBusException Class

  • java.lang.Object
    • Exception
      • com.microsoft.azure.servicebus.primitives.ServiceBusException

public class ServiceBusException

This is the base exception that service bus will generate for all error cases.

Constructor Summary

Constructor Description
ServiceBusException(final boolean isTransient)
ServiceBusException(final boolean isTransient, final String message)
ServiceBusException(final boolean isTransient, final String message, final Throwable cause)
ServiceBusException(final boolean isTransient, final Throwable cause)

Method Summary

Modifier and Type Method and Description
ErrorContext getContext()
boolean getIsTransient()

A boolean indicating if the exception is a transient error or not.

String getMessage()

Constructor Details

ServiceBusException

public ServiceBusException(final boolean isTransient)

Parameters:

isTransient

ServiceBusException

public ServiceBusException(final boolean isTransient, final String message)

Parameters:

isTransient
message

ServiceBusException

public ServiceBusException(final boolean isTransient, final String message, final Throwable cause)

Parameters:

isTransient
message
cause

ServiceBusException

public ServiceBusException(final boolean isTransient, final Throwable cause)

Parameters:

isTransient
cause

Method Details

getContext

public ErrorContext getContext()

getIsTransient

public boolean getIsTransient()

A boolean indicating if the exception is a transient error or not.

Returns:

returns true when user can retry the operation that generated the exception without additional intervention.

getMessage

public String getMessage()

Applies to