APIdia Launch Partner
Top Description Fields Constructors Methods
javax.naming

public Class InvalidNameException

extends NamingException
Class Inheritance

This exception indicates that the name being specified does not conform to the naming syntax of a naming system. This exception is thrown by any of the methods that does name parsing (such as those in Context, DirContext, CompositeName and CompoundName).

Synchronization and serialization issues that apply to NamingException apply directly here.

Authors
Rosanna Lee, Scott Seligman
Since
1.3
See Also
Context, javax.naming.directory.DirContext, CompositeName, CompoundName, NameParser

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability
Inherited from javax.naming.NamingException:
remainingNameresolvedNameresolvedObjrootException

Constructor Summary

AccessConstructor and Description
public
InvalidNameException(String
A possibly null message explaining the problem.
explanation
)

Constructs an instance of InvalidNameException using an explanation of the problem.

public
InvalidNameException()

Constructs an instance of InvalidNameException with all fields set to null.

Method Summary

Inherited from javax.naming.NamingException:
appendRemainingComponentappendRemainingNamegetCausegetExplanationgetRemainingNamegetResolvedNamegetResolvedObjgetRootCauseinitCausesetRemainingNamesetResolvedNamesetResolvedObjsetRootCausetoStringtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.naming.NamingException.serialVersionUID.

Use serialVersionUID from JNDI 1.1.1 for interoperability

Constructor Detail

InvalidNameExceptionback to summary
public InvalidNameException(String explanation)

Constructs an instance of InvalidNameException using an explanation of the problem. All other fields are initialized to null.

Parameters
explanation:String

A possibly null message explaining the problem.

See Also
java.lang.Throwable#getMessage
InvalidNameExceptionback to summary
public InvalidNameException()

Constructs an instance of InvalidNameException with all fields set to null.