## Uses of Class
java.lang.Error

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

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

    Subclasses of Error in java.lang
    Modifier and Type | Class and Description
    --- | ---
    `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` | `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` | `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` | `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.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.