Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.tv.locator
Class InvalidLocatorException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.tv.locator.InvalidLocatorException
All Implemented Interfaces:
java.io.Serializable

public class InvalidLocatorException
extends java.lang.Exception

This exception is thrown when a Locator is not valid in a particular context. A Locator can be invalid or several reasons, including:

See Also:
Serialized Form

Constructor Summary
InvalidLocatorException(Locator locator)
          Constructs an InvalidLocatorException with no detail message.
InvalidLocatorException(Locator locator, java.lang.String reason)
          Constructs an InvalidLocatorException with the specified detail message.
 
Method Summary
 Locator getInvalidLocator()
          Returns the offending Locator instance.
 
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

InvalidLocatorException

public InvalidLocatorException(Locator locator)
Constructs an InvalidLocatorException with no detail message.

Parameters:
locator - The offending Locator.

InvalidLocatorException

public InvalidLocatorException(Locator locator,
                               java.lang.String reason)
Constructs an InvalidLocatorException with the specified detail message.

Parameters:
locator - The offending Locator.
reason - The reason this Locator is invalid.
Method Detail

getInvalidLocator

public Locator getInvalidLocator()
Returns the offending Locator instance.

Returns:
The locator that caused the exception.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.