public class InvalidChannelLabelException extends FaultException
Modifier and Type | Class and Description |
---|---|
static class |
InvalidChannelLabelException.Reason
Flags indicating the different reasons that may have caused a channel label to be
invalid.
|
arguments, errorCode, label
Constructor and Description |
---|
InvalidChannelLabelException()
Creates a new indication of a channel label issue that does not specify the reason
for the error.
|
InvalidChannelLabelException(java.lang.String labelIn,
InvalidChannelLabelException.Reason reasonIn)
Creates a new indication that a given channel label is invalid
|
InvalidChannelLabelException(java.lang.String labelIn,
InvalidChannelLabelException.Reason reasonIn,
java.lang.String messageIdIn,
java.lang.String argIn)
Creates a new indication that a given channel label is invalid
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Returns the value of label
|
InvalidChannelLabelException.Reason |
getReason() |
create, getArgs, getErrorCode, setArgs, setErrorCode, setLabel
public InvalidChannelLabelException()
Ideally, this won't be used frequently. This was kept in to support current uses that don't fit into the idea of validating if a label can be used in a channel creation/edit.
public InvalidChannelLabelException(java.lang.String labelIn, InvalidChannelLabelException.Reason reasonIn)
labelIn
- label the user attempted to give the channelreasonIn
- flag indicating why the channel name is invalid; cannot be
null
public InvalidChannelLabelException(java.lang.String labelIn, InvalidChannelLabelException.Reason reasonIn, java.lang.String messageIdIn, java.lang.String argIn)
labelIn
- label the user attempted to give the channelreasonIn
- flag indicating why the channel name is invalid; cannot be
null
messageIdIn
- the string resource message IDargIn
- an optional argument that is associated with messageId. If there
is no argument, pass in an empty string.public java.lang.String getLabel()
FaultException
getLabel
in class FaultException
null
public InvalidChannelLabelException.Reason getReason()
getLabel()
invalid; may be null