org.netbeans.modules.j2ee.dd/1 1.13.0 2

org.netbeans.modules.j2ee.dd.api.common
Class VersionNotSupportedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException
All Implemented Interfaces:
Serializable

public class VersionNotSupportedException
extends Exception

Exception for cases when specific Servletx.x specification doesn't support the specific method.

See Also:
Serialized Form

Constructor Summary
VersionNotSupportedException(String version)
          Constructor for VersionNotSupportedException
VersionNotSupportedException(String version, String message)
          Constructor for VersionNotSupportedException
 
Method Summary
 String getVersion()
          Returns the version of deployment descriptor that caused this exception.
 
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

VersionNotSupportedException

public VersionNotSupportedException(String version,
                                    String message)
Constructor for VersionNotSupportedException

Parameters:
version - specific version of Servlet Spec. e.g."2.4"
message - exception message

VersionNotSupportedException

public VersionNotSupportedException(String version)
Constructor for VersionNotSupportedException

Parameters:
version - specific version of Servlet Spec. e.g."2.4"
Method Detail

getVersion

public String getVersion()
Returns the version of deployment descriptor that caused this exception.

Returns:
string specifying the DD version e.g. "2.4"

org.netbeans.modules.j2ee.dd/1 1.13.0 2

Built on December 1 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.