Package hydra.error.file
Class FileError.AlreadyExists
- java.lang.Object
-
- hydra.error.file.FileError
-
- hydra.error.file.FileError.AlreadyExists
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FileError>
- Enclosing class:
- FileError
public static final class FileError.AlreadyExists extends FileError implements java.io.Serializable
A path already exists where one was required not to (POSIX EEXIST), e.g. creating a directory that is already present- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.error.file.FileError
FileError.AlreadyExists, FileError.InvalidPath, FileError.NotFound, FileError.Other, FileError.PartialVisitor<R>, FileError.PermissionDenied, FileError.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description FilePathvalue-
Fields inherited from class hydra.error.file.FileError
ALREADY_EXISTS, INVALID_PATH, NOT_FOUND, OTHER, PERMISSION_DENIED, TYPE_
-
-
Constructor Summary
Constructors Constructor Description AlreadyExists(FilePath value)Constructs an immutableFileError.AlreadyExists.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(FileError.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(FileError other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Field Detail
-
value
public final FilePath value
-
-
Constructor Detail
-
AlreadyExists
public AlreadyExists(FilePath value)
Constructs an immutableFileError.AlreadyExists.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(FileError other)
- Specified by:
compareToin interfacejava.lang.Comparable<FileError>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classFileError
-
accept
public <R> R accept(FileError.Visitor<R> visitor)
Dispatch tovisitor.
-
-