# com.bea.xml
SchemaTypeLoaderException Class

public class SchemaTypeLoaderException
extends `XmlRuntimeException`

An exception that is thrown if there is corruption or a version mismatch in a compiled schema type system.

Hierarchy
  `Object`
  `Throwable`
  `Exception`
  `RuntimeException`
  `XmlRuntimeException`
  `SchemaTypeLoaderException`

All Implemented Interfaces
  `Serializable`

## Field Summary

`public static final int` | `BAD_HANDLE` int
`public static final int` | `BAD_PARTICLE_TYPE` int
`public static final int` | `INT_TOO_LARGE` int
`public static final int` | `IO_EXCEPTION` int
`public static final int` | `MALFORMED_CONTENT_MODEL` int
`public static final int` | `NESTED_EXCEPTION` int
`public static final int` | `NO_RESOURCE` int
`public static final int` | `NOT_WRITEABLE` int
`public static final int` | `UNRECOGNIZED_INDEX_ENTRY` int
`public static final int` | `WRONG_FILE_TYPE` int
`public static final int` | `WRONG_MAGIC_COOKIE` int
`public static final int` | `WRONG_MAJOR_VERSION` int
`public static final int` | `WRONG_MINOR_VERSION` int
`public static final int` | `WRONG_PROPERTY_TYPE` int
`public static final int` | `WRONG_SIMPLE_VARIETY` int

## Constructor Summary

SchemaTypeLoaderException(`String` message, `String` name, `String` handle, int code, `Exception` cause) Constructs an exception with the given message, filename, extension, code, and cause
SchemaTypeLoaderException(`String` message, `String` name, `String` handle, int code) Constructs an exception with the given message, filename, extension, and code

## Method Summary

`public int` | `getCode`() Returns the reason for the failure, given by one of the numeric constants in this class

Methods from `com.bea.xml.`XmlRuntimeException``
``getError`, `getErrors``

Methods from `java.lang.`Throwable``
`fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Field Detail

### BAD_HANDLE

    public static final int BAD_HANDLE

### BAD_PARTICLE_TYPE

    public static final int BAD_PARTICLE_TYPE

### INT_TOO_LARGE

    public static final int INT_TOO_LARGE

### IO_EXCEPTION

    public static final int IO_EXCEPTION

### MALFORMED_CONTENT_MODEL

    public static final int MALFORMED_CONTENT_MODEL

### NESTED_EXCEPTION

    public static final int NESTED_EXCEPTION

### NO_RESOURCE

    public static final int NO_RESOURCE

### NOT_WRITEABLE

    public static final int NOT_WRITEABLE

### UNRECOGNIZED_INDEX_ENTRY

    public static final int UNRECOGNIZED_INDEX_ENTRY

### WRONG_FILE_TYPE

    public static final int WRONG_FILE_TYPE

### WRONG_MAGIC_COOKIE

    public static final int WRONG_MAGIC_COOKIE

### WRONG_MAJOR_VERSION

    public static final int WRONG_MAJOR_VERSION

### WRONG_MINOR_VERSION

    public static final int WRONG_MINOR_VERSION

### WRONG_PROPERTY_TYPE

    public static final int WRONG_PROPERTY_TYPE

### WRONG_SIMPLE_VARIETY

    public static final int WRONG_SIMPLE_VARIETY

## Constructor Detail

### SchemaTypeLoaderException

    public SchemaTypeLoaderException(String message,
                                     String name,
                                     String handle,
                                     int code,
                                     Exception cause)

  Constructs an exception with the given message, filename, extension, code, and cause

### SchemaTypeLoaderException

    public SchemaTypeLoaderException(String message,
                                     String name,
                                     String handle,
                                     int code)

  Constructs an exception with the given message, filename, extension, and code

## Method Detail

### getCode() Method

    public int getCode()

Returns the reason for the failure, given by one of the numeric constants in this class