Oracle interMedia Audio, Image, and Video Java Classes User's Guide and Reference
Release 8.1.7

Part Number A85374-01

Library

Product

Contents

Index

Go to previous page Go to next page

B
Exceptions and Errors

This appendix contains information on the exceptions and errors that can be raised by interMedia Java Classes.

B.1 Exception Class

The Exception class (and its subclasses, including SQLException) indicates conditions of interest to the user.

public class java.lang.Exception extends java.lang.Throwable {
     //Constructs an Exception with no detailed message
     public Exception();
     
     //Constructs an Exception with a detailed message
     public Exception(String s);
}

B.2 IOException Class

The IOException class signals that an I/O exception of some sort has occurred.

public class java.io.IOException extends java.lang.Exception {
     //Constructs a FileNotFoundException with no detailed message
     public IOException();
     
     //Constructs a FileNotFoundException with the specified detailed message
     public IOException(String s);
}

B.3 OutOfMemoryError Class

The OutOfMemoryError class signals that the Java Virtual Machine cannot allocate an object because it is both out of memory and unable to make more memory available through garbage collecting (that is, through deleting objects that are no longer being used).

public class java.lang.OutOfMemoryError extends java.lang.VirtualMachineError {
     //Constructs an OutOfMemoryError with no detailed message
     public OutOfMemoryError();
     
     //Constructs an OutOfMemoryError with a detailed message
     public OutOfMemoryError(string s);
}

B.4 SQLException Class

The SQLException class provides information on a database access error.

public class java.sql.SQLException extends java.lang.Exception {
     //The following four methods are public constructors:
     
     //Constructs a fully specified SQLException
     public SQLException(String reason, String SQLState, int vendorCode);
     
     //Constructs a SQLException with venderCode value of 0
     public SQLException(String reason, String SQLState);
     
     //Constructs a SQLException with vendorCode value of 0 and a null SQLState
     public SQLException(String reason);
     
     //Constructs a SQLException with vendorCode of 0, a null SQLState. and a 
     //null reason
     public SQLException();
     
     //The following four methods are public instance methods:
      
     //Gets the vendor-specific exception code
     public int getErrorCode();
     
     //Gets the exception connected to this one
     public SQLException getNextException();
     
     //Gets the SQL state
     public String getSQLState();
     
     //Adds a SQLException to the end
     public synchronized void setNextException(SQLException ex);
}


Go to previous page Go to next page
Oracle
Copyright © 2000 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index