Package org.apache.tapestry5.services

## Class AssetNotFoundException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.apache.tapestry5.services.AssetNotFoundException

- All Implemented Interfaces:
    `Serializable`

      public class AssetNotFoundException
      extends RuntimeException

  Class that represents the exception of an asset not being found.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AssetNotFoundException​(String message)`
    `AssetNotFoundException​(String message, Resource resource)` | Constructs an exception with message and a `Resource`.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Resource` | `getResource()` | The resource which wasn't found.

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AssetNotFoundException

          public AssetNotFoundException​(String message)

    - #### AssetNotFoundException

          public AssetNotFoundException​(String message,
                                        Resource resource)

      Constructs an exception with message and a `Resource`.
      Parameters:
        `message` - a `String`.
        `resource` - a `Resource`.

  - ### Method Detail

    - #### getResource

          public Resource getResource()

      The resource which wasn't found. It may be null.
      Returns:
        a `Resource`.