Java DTV API 1.3
18-Nov-2009

com.sun.dtv.broadcast
Class BroadcastException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.sun.dtv.broadcast.BroadcastException
All Implemented Interfaces:
Serializable

public class BroadcastException
extends IOException

All broadcast related exceptions MUST use this subclass of java.io.IOException in order to make different reason easier to distinguish.

See Also:
Serialized Form

Field Summary
static int REASON_INCONSISTENT_MESSAGE
          This reason code is used when an inconsistent message is received from the broadcast stream.
static int REASON_INVALID_OPERATION
          This reason code is used if this operation is invalid.
static int REASON_INVALID_PATH
          This reason code is used if the requested path name does not exist in the broadcast stream.
static int REASON_NONEXISTENT_OBJECT
          This reason code is used if the requested object does not exist in the broadcast stream.
static int REASON_OTHER
          This reason code is used if no other reason code applies.
static int REASON_TIMEOUT
          This reason code is used if timeout occurs while reading from the broadcast stream.
static int REASON_UNSUPPORTED
          This reason code is used if this operation is not supported.
 
Constructor Summary
BroadcastException()
           
 
Method Summary
 int getReason()
          Retrieves the reason of 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
 

Field Detail

REASON_INCONSISTENT_MESSAGE

public static final int REASON_INCONSISTENT_MESSAGE
This reason code is used when an inconsistent message is received from the broadcast stream.

See Also:
Constant Field Values

REASON_NONEXISTENT_OBJECT

public static final int REASON_NONEXISTENT_OBJECT
This reason code is used if the requested object does not exist in the broadcast stream.

See Also:
Constant Field Values

REASON_INVALID_PATH

public static final int REASON_INVALID_PATH
This reason code is used if the requested path name does not exist in the broadcast stream.

See Also:
Constant Field Values

REASON_TIMEOUT

public static final int REASON_TIMEOUT
This reason code is used if timeout occurs while reading from the broadcast stream.

See Also:
Constant Field Values

REASON_UNSUPPORTED

public static final int REASON_UNSUPPORTED
This reason code is used if this operation is not supported.

See Also:
Constant Field Values

REASON_INVALID_OPERATION

public static final int REASON_INVALID_OPERATION
This reason code is used if this operation is invalid.

See Also:
Constant Field Values

REASON_OTHER

public static final int REASON_OTHER
This reason code is used if no other reason code applies. Additional information should be retrieved from the detailed text message.

See Also:
Constant Field Values
Constructor Detail

BroadcastException

public BroadcastException()
Method Detail

getReason

public int getReason()
Retrieves the reason of this exception.

Returns:
the reason

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.