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:
    `java.io.Serializable`

      public class AssetNotFoundException
      extends java.lang.RuntimeException

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

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AssetNotFoundException​(java.lang.String message)`
    `AssetNotFoundException​(java.lang.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​(java.lang.String message)

    - #### AssetNotFoundException

          public AssetNotFoundException​(java.lang.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`.