Package: org.gradle.api.resources

## [Java] Class ResourceException

- org.gradle.api.resources.ResourceException

- Generic resource exception that all other resource-related exceptions inherit from.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ResourceException ()`
    `ResourceException (String message)`
    `ResourceException (String message, Throwable cause)`
    `ResourceException (URI location, String message)`
    `ResourceException (URI location, String message, Throwable cause)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `URI` | `getLocation()` Returns the location of the resource, if known.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class RuntimeException` | `printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public ResourceException()

    - #### public ResourceException(String message)

    - #### public ResourceException(String message, Throwable cause)

    - #### public ResourceException(URI location, String message)

    - #### public ResourceException(URI location, String message, Throwable cause)

  - ### Method Detail

    - #### @Nullable public URI getLocation()

      Returns the location of the resource, if known.

      Returns:
        The location, or null if not known.