Class SnapshotException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.elasticsearch.ElasticsearchException
org.elasticsearch.snapshots.SnapshotException
All Implemented Interfaces:
java.io.Serializable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment
Direct Known Subclasses:
ConcurrentSnapshotExecutionException, InvalidSnapshotNameException, SnapshotCreationException, SnapshotMissingException, SnapshotRestoreException

public class SnapshotException
extends ElasticsearchException
Generic snapshot exception
See Also:
Serialized Form
  • Constructor Details

    • SnapshotException

      public SnapshotException​(Snapshot snapshot, java.lang.String msg)
    • SnapshotException

      public SnapshotException​(Snapshot snapshot, java.lang.String msg, java.lang.Throwable cause)
    • SnapshotException

      public SnapshotException​(java.lang.String repositoryName, SnapshotId snapshotId, java.lang.String msg, java.lang.Throwable cause)
    • SnapshotException

      public SnapshotException​(java.lang.String repositoryName, java.lang.String snapshotName, java.lang.String msg)
    • SnapshotException

      public SnapshotException​(java.lang.String repositoryName, java.lang.String snapshotName, java.lang.String msg, java.lang.Throwable cause)
    • SnapshotException

      public SnapshotException​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class ElasticsearchException
      Throws:
      java.io.IOException
    • getRepositoryName

      @Nullable public java.lang.String getRepositoryName()
    • getSnapshotName

      @Nullable public java.lang.String getSnapshotName()