org.jvnet.solaris.libzfs
Enum ErrorCode

java.lang.Object
  extended by java.lang.Enum<ErrorCode>
      extended by org.jvnet.solaris.libzfs.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>

public enum ErrorCode
extends Enum<ErrorCode>

ZFS error code.

Author:
Kohsuke Kawaguchi

Enum Constant Summary
EZFS_BADBACKUP
           
EZFS_BADCACHE
           
EZFS_BADDEV
           
EZFS_BADPATH
           
EZFS_BADPERM
           
EZFS_BADPERMSET
           
EZFS_BADPROP
           
EZFS_BADRESTORE
           
EZFS_BADSTREAM
           
EZFS_BADTARGET
           
EZFS_BADTYPE
           
EZFS_BADVERSION
           
EZFS_BADWHO
           
EZFS_BUSY
           
EZFS_CROSSTARGET
           
EZFS_DEVLINKS
           
EZFS_DEVOVERFLOW
           
EZFS_DSREADONLY
           
EZFS_EXISTS
           
EZFS_INTR
           
EZFS_INVALCONFIG
           
EZFS_INVALIDNAME
           
EZFS_IO
           
EZFS_ISCSISVCUNAVAIL
           
EZFS_ISL2CACHE
           
EZFS_ISSPARE
           
EZFS_LABELFAILED
           
EZFS_MOUNTFAILED
           
EZFS_NAMETOOLONG
           
EZFS_NOCAP
           
EZFS_NODELEGATION
           
EZFS_NODEVICE
           
EZFS_NOENT
           
EZFS_NOHISTORY
           
EZFS_NOMEM
           
EZFS_NOREPLICAS
           
EZFS_NOSPC
           
EZFS_OPENFAILED
           
EZFS_PERM
           
EZFS_PERMRDONLY
           
EZFS_POOL_INVALARG
           
EZFS_POOL_NOTSUP
           
EZFS_POOLPROPS
           
EZFS_POOLUNAVAIL
           
EZFS_PROPNONINHERIT
           
EZFS_PROPREADONLY
           
EZFS_PROPSPACE
           
EZFS_PROPTYPE
           
EZFS_RECURSIVE
           
EZFS_RESILVERING
           
EZFS_SHAREISCSIFAILED
           
EZFS_SHARENFSFAILED
           
EZFS_SHARESMBFAILED
           
EZFS_UMOUNTFAILED
           
EZFS_UNKNOWN
           
EZFS_UNSHAREISCSIFAILED
           
EZFS_UNSHARENFSFAILED
           
EZFS_UNSHARESMBFAILED
           
EZFS_VDEVNOTSUP
           
EZFS_VOLHASDATA
           
EZFS_VOLTOOBIG
           
EZFS_ZONED
           
 
Method Summary
 int code()
          Error code number.
static ErrorCode fromCode(int c)
           
static ErrorCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ErrorCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EZFS_NOMEM

public static final ErrorCode EZFS_NOMEM

EZFS_BADPROP

public static final ErrorCode EZFS_BADPROP

EZFS_PROPREADONLY

public static final ErrorCode EZFS_PROPREADONLY

EZFS_PROPTYPE

public static final ErrorCode EZFS_PROPTYPE

EZFS_PROPNONINHERIT

public static final ErrorCode EZFS_PROPNONINHERIT

EZFS_PROPSPACE

public static final ErrorCode EZFS_PROPSPACE

EZFS_BADTYPE

public static final ErrorCode EZFS_BADTYPE

EZFS_BUSY

public static final ErrorCode EZFS_BUSY

EZFS_EXISTS

public static final ErrorCode EZFS_EXISTS

EZFS_NOENT

public static final ErrorCode EZFS_NOENT

EZFS_BADSTREAM

public static final ErrorCode EZFS_BADSTREAM

EZFS_DSREADONLY

public static final ErrorCode EZFS_DSREADONLY

EZFS_VOLTOOBIG

public static final ErrorCode EZFS_VOLTOOBIG

EZFS_VOLHASDATA

public static final ErrorCode EZFS_VOLHASDATA

EZFS_INVALIDNAME

public static final ErrorCode EZFS_INVALIDNAME

EZFS_BADRESTORE

public static final ErrorCode EZFS_BADRESTORE

EZFS_BADBACKUP

public static final ErrorCode EZFS_BADBACKUP

EZFS_BADTARGET

public static final ErrorCode EZFS_BADTARGET

EZFS_NODEVICE

public static final ErrorCode EZFS_NODEVICE

EZFS_BADDEV

public static final ErrorCode EZFS_BADDEV

EZFS_NOREPLICAS

public static final ErrorCode EZFS_NOREPLICAS

EZFS_RESILVERING

public static final ErrorCode EZFS_RESILVERING

EZFS_BADVERSION

public static final ErrorCode EZFS_BADVERSION

EZFS_POOLUNAVAIL

public static final ErrorCode EZFS_POOLUNAVAIL

EZFS_DEVOVERFLOW

public static final ErrorCode EZFS_DEVOVERFLOW

EZFS_BADPATH

public static final ErrorCode EZFS_BADPATH

EZFS_CROSSTARGET

public static final ErrorCode EZFS_CROSSTARGET

EZFS_ZONED

public static final ErrorCode EZFS_ZONED

EZFS_MOUNTFAILED

public static final ErrorCode EZFS_MOUNTFAILED

EZFS_UMOUNTFAILED

public static final ErrorCode EZFS_UMOUNTFAILED

EZFS_UNSHARENFSFAILED

public static final ErrorCode EZFS_UNSHARENFSFAILED

EZFS_SHARENFSFAILED

public static final ErrorCode EZFS_SHARENFSFAILED

EZFS_DEVLINKS

public static final ErrorCode EZFS_DEVLINKS

EZFS_PERM

public static final ErrorCode EZFS_PERM

EZFS_NOSPC

public static final ErrorCode EZFS_NOSPC

EZFS_IO

public static final ErrorCode EZFS_IO

EZFS_INTR

public static final ErrorCode EZFS_INTR

EZFS_ISSPARE

public static final ErrorCode EZFS_ISSPARE

EZFS_INVALCONFIG

public static final ErrorCode EZFS_INVALCONFIG

EZFS_RECURSIVE

public static final ErrorCode EZFS_RECURSIVE

EZFS_NOHISTORY

public static final ErrorCode EZFS_NOHISTORY

EZFS_UNSHAREISCSIFAILED

public static final ErrorCode EZFS_UNSHAREISCSIFAILED

EZFS_SHAREISCSIFAILED

public static final ErrorCode EZFS_SHAREISCSIFAILED

EZFS_POOLPROPS

public static final ErrorCode EZFS_POOLPROPS

EZFS_POOL_NOTSUP

public static final ErrorCode EZFS_POOL_NOTSUP

EZFS_POOL_INVALARG

public static final ErrorCode EZFS_POOL_INVALARG

EZFS_NAMETOOLONG

public static final ErrorCode EZFS_NAMETOOLONG

EZFS_OPENFAILED

public static final ErrorCode EZFS_OPENFAILED

EZFS_NOCAP

public static final ErrorCode EZFS_NOCAP

EZFS_LABELFAILED

public static final ErrorCode EZFS_LABELFAILED

EZFS_ISCSISVCUNAVAIL

public static final ErrorCode EZFS_ISCSISVCUNAVAIL

EZFS_BADWHO

public static final ErrorCode EZFS_BADWHO

EZFS_BADPERM

public static final ErrorCode EZFS_BADPERM

EZFS_BADPERMSET

public static final ErrorCode EZFS_BADPERMSET

EZFS_NODELEGATION

public static final ErrorCode EZFS_NODELEGATION

EZFS_PERMRDONLY

public static final ErrorCode EZFS_PERMRDONLY

EZFS_UNSHARESMBFAILED

public static final ErrorCode EZFS_UNSHARESMBFAILED

EZFS_SHARESMBFAILED

public static final ErrorCode EZFS_SHARESMBFAILED

EZFS_BADCACHE

public static final ErrorCode EZFS_BADCACHE

EZFS_ISL2CACHE

public static final ErrorCode EZFS_ISL2CACHE

EZFS_VDEVNOTSUP

public static final ErrorCode EZFS_VDEVNOTSUP

EZFS_UNKNOWN

public static final ErrorCode EZFS_UNKNOWN
Method Detail

values

public static ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ErrorCode c : ErrorCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

code

public int code()
Error code number.


fromCode

public static ErrorCode fromCode(int c)


Copyright © 2012. All Rights Reserved.