org.yenc
Class MissingParameterException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.yenc.YEncException
                    |
                    +--org.yenc.MissingParameterException

public class MissingParameterException
extends YEncException

Thrown to indicate that a header had a missing parameter.

Author:
Luis Parravicini
See Also:
Serialized Form

Constructor Summary
MissingParameterException(java.lang.String parameter, java.lang.String header)
          Constructs a MissingParameterException with a default message.
MissingParameterException(java.lang.String parameter, java.lang.String header, java.lang.String s)
          Constructs a MissingParameterException with the specified detail message.
 
Method Summary
 java.lang.String getHeaderName()
          Returns the header to which the parameter belongs to.
 java.lang.String getParameterName()
          Returns the missing parameter name.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MissingParameterException

public MissingParameterException(java.lang.String parameter,
                                 java.lang.String header,
                                 java.lang.String s)
Constructs a MissingParameterException with the specified detail message. The others arguments are the name of the missing parameter and the name of the header to which the parameter belongs to.

MissingParameterException

public MissingParameterException(java.lang.String parameter,
                                 java.lang.String header)
Constructs a MissingParameterException with a default message. The exception message is constructed using the parameter and header's name.
See Also:
MissingParameterException(String, String, String)
Method Detail

getParameterName

public java.lang.String getParameterName()
Returns the missing parameter name.

getHeaderName

public java.lang.String getHeaderName()
Returns the header to which the parameter belongs to.