java.lang.Object
java.lang.Enum<ErrorCode>
org.cryptomator.frontend.dokany.internal.constants.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
Pseudo-Wrapper class for different NtStatus-Codes (e.g. ERROR_FILE_NOT_FOUND has the error code of NtStatus.OBJECT_NAME_NOT_FOUND) TODO: maybe we should change this to use directly NtStatus. And are all error codes correct?
  • Enum Constant Details

    • SUCCESS

      public static final ErrorCode SUCCESS
    • ERROR_WRITE_FAULT

      public static final ErrorCode ERROR_WRITE_FAULT
    • ERROR_READ_FAULT

      public static final ErrorCode ERROR_READ_FAULT
    • ERROR_FILE_NOT_FOUND

      public static final ErrorCode ERROR_FILE_NOT_FOUND
    • OBJECT_NAME_COLLISION

      public static final ErrorCode OBJECT_NAME_COLLISION
    • ERROR_FILE_EXISTS

      public static final ErrorCode ERROR_FILE_EXISTS
    • ERROR_ALREADY_EXISTS

      public static final ErrorCode ERROR_ALREADY_EXISTS
  • Method Details

    • values

      public static ErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMask

      public int getMask()