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.service.selection
Class InvalidServiceComponentException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.tv.service.selection.ServiceContextException
              extended byjavax.tv.service.selection.InvalidServiceComponentException
All Implemented Interfaces:
java.io.Serializable

public class InvalidServiceComponentException
extends ServiceContextException

This exception is thrown when one or more service components are not valid for usage in a particular context. If multiple service components are simultaneously invalid, this exception reports one of them.

See Also:
Serialized Form

Constructor Summary
InvalidServiceComponentException(Locator component)
          Constructs an InvalidServiceComponentException with no detail message.
InvalidServiceComponentException(Locator component, java.lang.String reason)
          Constructs an InvalidServiceComponentException with the specified detail message.
 
Method Summary
 Locator getInvalidServiceComponent()
          Reports the offending service components.
 
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

InvalidServiceComponentException

public InvalidServiceComponentException(Locator component)
Constructs an InvalidServiceComponentException with no detail message.

Parameters:
component - A locator indicating the offending service component.

InvalidServiceComponentException

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

Parameters:
component - A locator indicating the offending service component.
reason - The reason why this component is invalid.
Method Detail

getInvalidServiceComponent

public Locator getInvalidServiceComponent()
Reports the offending service components.

Returns:
A locator indicating the service component 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.