Package com.hierynomus.mserref
Enum Class NtStatus
- All Implemented Interfaces:
EnumWithValue<NtStatus>
,Serializable
,Comparable<NtStatus>
,Constable
[MS-ERREF].pdf 2.3.1 NTSTATUS values
Subset of the possible values which are useful for SMB2 communication
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.hierynomus.protocol.commons.EnumWithValue
EnumWithValue.EnumUtils
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getValue()
boolean
isError()
Check whether the 'Sev' bits are set to 0x03.static boolean
isError
(long statusCode) Check whether the 'Sev' bits are set to 0x03.boolean
Check whether the 'Sev' bits are set to 0x01.boolean
Check whether the 'Sev' bits are set to 0x0.static boolean
isSuccess
(long statusCode) Check whether the 'Sev' bits are set to 0x0.boolean
Check whether the 'Sev' bits are set to 0x02.static NtStatus
valueOf
(long statusCode) Returns the enum constant of this class with the specified name.static NtStatus
Returns the enum constant of this class with the specified name.static NtStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STATUS_SUCCESS
-
STATUS_UNSUCCESSFUL
-
STATUS_TIMEOUT
-
STATUS_PENDING
-
STATUS_NOTIFY_CLEANUP
-
STATUS_NOTIFY_ENUM_DIR
-
STATUS_BUFFER_OVERFLOW
-
STATUS_NO_MORE_FILES
-
STATUS_STOPPED_ON_SYMLINK
-
STATUS_NOT_IMPLEMENTED
-
STATUS_INVALID_INFO_CLASS
-
STATUS_INFO_LENGTH_MISMATCH
-
STATUS_NO_SUCH_FILE
-
STATUS_INVALID_PARAMETER
-
STATUS_END_OF_FILE
-
STATUS_MORE_PROCESSING_REQUIRED
-
STATUS_ACCESS_DENIED
-
STATUS_BUFFER_TOO_SMALL
-
STATUS_OBJECT_NAME_INVALID
-
STATUS_OBJECT_NAME_NOT_FOUND
-
STATUS_OBJECT_NAME_COLLISION
-
STATUS_OBJECT_PATH_NOT_FOUND
-
STATUS_SHARING_VIOLATION
-
STATUS_FILE_LOCK_CONFLICT
-
STATUS_LOCK_NOT_GRANTED
-
STATUS_DELETE_PENDING
-
STATUS_PRIVILEGE_NOT_HELD
-
STATUS_LOGON_FAILURE
-
STATUS_PASSWORD_EXPIRED
-
STATUS_ACCOUNT_DISABLED
-
STATUS_RANGE_NOT_LOCKED
-
STATUS_DISK_FULL
-
STATUS_INSUFFICIENT_RESOURCES
-
STATUS_PIPE_NOT_AVAILABLE
-
STATUS_INVALID_PIPE_STATE
-
STATUS_PIPE_BUSY
-
STATUS_IO_TIMEOUT
-
STATUS_FILE_IS_A_DIRECTORY
-
STATUS_NOT_SUPPORTED
-
STATUS_BAD_NETWORK_PATH
-
STATUS_NETWORK_NAME_DELETED
-
STATUS_BAD_NETWORK_NAME
-
STATUS_REQUEST_NOT_ACCEPTED
-
STATUS_NET_WRITE_FAULT
-
STATUS_NOT_SAME_DEVICE
-
STATUS_FILE_RENAMED
-
STATUS_OPLOCK_NOT_GRANTED
-
STATUS_INTERNAL_ERROR
-
STATUS_UNEXPECTED_IO_ERROR
-
STATUS_DIRECTORY_NOT_EMPTY
-
STATUS_NOT_A_DIRECTORY
-
STATUS_NAME_TOO_LONG
-
STATUS_FILES_OPEN
-
STATUS_CONNECTION_IN_USE
-
STATUS_TOO_MANY_OPENED_FILES
-
STATUS_CANCELLED
-
STATUS_CANNOT_DELETE
-
STATUS_FILE_DELETED
-
STATUS_FILE_CLOSED
-
STATUS_OPEN_FAILED
-
STATUS_LOGON_TYPE_NOT_GRANTED
-
STATUS_TOO_MANY_SIDS
-
STATUS_USER_SESSION_DELETED
-
STATUS_INSUFF_SERVER_RESOURCES
-
STATUS_CONNECTION_DISCONNECTED
-
STATUS_CONNECTION_RESET
-
STATUS_NOT_FOUND
-
STATUS_RETRY
-
STATUS_PATH_NOT_COVERED
-
STATUS_DFS_UNAVAILABLE
-
STATUS_VOLUME_DISMOUNTED
-
STATUS_IO_REPARSE_TAG_NOT_HANDLED
-
STATUS_FILE_ENCRYPTED
-
STATUS_NETWORK_SESSION_EXPIRED
-
STATUS_OTHER
-
-
Field Details
-
value
private long value
-
-
Constructor Details
-
NtStatus
private NtStatus(long val)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
valueOf
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:
statusCode
- 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 nameNullPointerException
- if the argument is null
-
getValue
public long getValue()- Specified by:
getValue
in interfaceEnumWithValue<NtStatus>
-
isSuccess
public boolean isSuccess()Check whether the 'Sev' bits are set to 0x0.- Returns:
-
isSuccess
public static boolean isSuccess(long statusCode) Check whether the 'Sev' bits are set to 0x0.- Returns:
-
isInformational
public boolean isInformational()Check whether the 'Sev' bits are set to 0x01.- Returns:
-
isWarning
public boolean isWarning()Check whether the 'Sev' bits are set to 0x02.- Returns:
-
isError
public boolean isError()Check whether the 'Sev' bits are set to 0x03.- Returns:
-
isError
public static boolean isError(long statusCode) Check whether the 'Sev' bits are set to 0x03.- Returns:
-