Package com.microsoft.azure.servicebus
Enum ExceptionPhase
- java.lang.Object
-
- java.lang.Enum<ExceptionPhase>
-
- com.microsoft.azure.servicebus.ExceptionPhase
-
- All Implemented Interfaces:
Serializable
,Comparable<ExceptionPhase>
public enum ExceptionPhase extends Enum<ExceptionPhase>
Enumeration to represent the phase in a message pump or session pump at which an exception occurred.- Since:
- 1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABANDON
Abandoning a message threw an exceptionACCEPTSESSION
Accepting a session threw an exception.COMPLETE
Completing a message threw an exceptionRECEIVE
Receiving messages from Azure Service Bus threw an exception.RENEWMESSAGELOCK
Renewing the lock of a message threw an exception.RENEWSESSIONLOCK
Renewing the lock of a session threw an exception.SESSIONCLOSE
Closing a session threw an exception.USERCALLBACK
Application code in message handler or session handler threw an exception.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExceptionPhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExceptionPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RECEIVE
public static final ExceptionPhase RECEIVE
Receiving messages from Azure Service Bus threw an exception.
-
RENEWMESSAGELOCK
public static final ExceptionPhase RENEWMESSAGELOCK
Renewing the lock of a message threw an exception.
-
COMPLETE
public static final ExceptionPhase COMPLETE
Completing a message threw an exception
-
ABANDON
public static final ExceptionPhase ABANDON
Abandoning a message threw an exception
-
USERCALLBACK
public static final ExceptionPhase USERCALLBACK
Application code in message handler or session handler threw an exception. Applications should ideally not throw exceptions from message handler or session handler.
-
SESSIONCLOSE
public static final ExceptionPhase SESSIONCLOSE
Closing a session threw an exception.
-
ACCEPTSESSION
public static final ExceptionPhase ACCEPTSESSION
Accepting a session threw an exception.
-
RENEWSESSIONLOCK
public static final ExceptionPhase RENEWSESSIONLOCK
Renewing the lock of a session threw an exception.
-
-
Method Detail
-
values
public static ExceptionPhase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExceptionPhase c : ExceptionPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExceptionPhase valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-