## Uses of Class
java.lang.Error

- Packages that use Error
  Package | Description
  --- | ---
  java.lang |
  java.lang.annotation |
  java.util |

- - ### Uses of Error in java.lang

    Subclasses of Error in java.lang
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AbstractMethodError` Thrown when an application tries to call an abstract method.
    `class` | `AssertionError` Thrown to indicate that an assertion has failed.
    `class` | `ClassFormatError` Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.
    `class` | `IllegalAccessError` Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to.
    `class` | `IncompatibleClassChangeError` Thrown when an incompatible class change has occurred to some class definition.
    `class` | `InternalError` Thrown to indicate some unexpected internal error has occurred in the Java Virtual Machine.
    `class` | `LinkageError` Subclasses of `LinkageError` indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.
    `class` | `NoSuchFieldError` Thrown if an application tries to access or modify a specified field of an object, and that object no longer has that field.
    `class` | `NoSuchMethodError` Thrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method.
    `class` | `OutOfMemoryError` Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.
    `class` | `StackOverflowError` Thrown when a stack overflow occurs because an application recurses too deeply.
    `class` | `VirtualMachineError` Thrown to indicate that the Java Virtual Machine is broken or has run out of resources necessary for it to continue operating.

  - ### Uses of Error in java.lang.annotation

    Subclasses of Error in java.lang.annotation
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AnnotationFormatError` Thrown when the annotation parser attempts to read an annotation from a class file and determines that the annotation is malformed.

  - ### Uses of Error in java.util

    Subclasses of Error in java.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ServiceConfigurationError` Error thrown when something goes wrong while loading a service provider.

Copyright © 2025 API Design. All Rights Reserved.