ie.omk.smpp.message.tlv
Class TagDefinedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ie.omk.smpp.message.tlv.TagDefinedException
All Implemented Interfaces:
Serializable

public class TagDefinedException
extends RuntimeException

Tag has already been defined. This exception is thrown by Tag.defineTag(int, java.lang.Class, ie.omk.smpp.message.tlv.Encoder, int)if an attempt is made to redefine a tag which already has a definition.

Version:
$Id: TagDefinedException.java 258 2006-03-09 11:37:09Z orank $
Author:
Oran Kelly
See Also:
Serialized Form

Constructor Summary
TagDefinedException(int tagValue)
          Create a new TagDefinedException.
TagDefinedException(int tagValue, String msg)
          Create a new TagDefinedException.
 
Method Summary
 int getTagValue()
          Get the tag for which an attempt as made to redefine.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagDefinedException

public TagDefinedException(int tagValue)
Create a new TagDefinedException.

Parameters:
tagValue - The tag for which an attempt as made to redefine.

TagDefinedException

public TagDefinedException(int tagValue,
                           String msg)
Create a new TagDefinedException.

Parameters:
tagValue - The tag for which an attempt as made to redefine.
msg - The exception message.
Method Detail

getTagValue

public int getTagValue()
Get the tag for which an attempt as made to redefine.

Returns:
The tag for which an attempt as made to redefine.


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.