Class ResourceNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inductiveautomation.ignition.common.resourcecollection.PushException
com.inductiveautomation.ignition.common.resourcecollection.ResourceNotFoundException
All Implemented Interfaces:
Serializable

public class ResourceNotFoundException extends PushException
Specific kind of PushException indicating that a push targeted a resource that is not there, as discovered while validating the push rather than by the caller's own read beforehand.

Unlike SignatureMismatchException it is not retryable: re-reading will not bring the resource back.

See Also:
  • Constructor Details

    • ResourceNotFoundException

      public ResourceNotFoundException(String reason)
      Required by ExceptionSerializer, which rebuilds this reflectively over the Gateway Network through a (String) constructor. Leaves the structural fields null.
    • ResourceNotFoundException

      public ResourceNotFoundException(ResourcePath path)
    • ResourceNotFoundException

      public ResourceNotFoundException(ResourcePath path, @Nullable String collection)
      collection qualifies the resource when the caller knows which one it looked in. The same path can exist in more than one collection, so the path alone does not always identify a target.
  • Method Details

    • getPath

      public @Nullable ResourcePath getPath()
    • getCollection

      public @Nullable String getCollection()
      The collection the resource was looked for in, or null when the caller named none.