com.nostra13.universalimageloader.core.assist
Enum FailReason.FailType

java.lang.Object
  extended by java.lang.Enum<FailReason.FailType>
      extended by com.nostra13.universalimageloader.core.assist.FailReason.FailType
All Implemented Interfaces:
Serializable, Comparable<FailReason.FailType>
Enclosing class:
FailReason

public static enum FailReason.FailType
extends Enum<FailReason.FailType>

Presents type of fail while image loading


Enum Constant Summary
DECODING_ERROR
          Error while decode image to Bitmap
IO_ERROR
          Input/output error.
NETWORK_DENIED
          Network downloads are denied and requested image wasn't cached in disk cache before.
OUT_OF_MEMORY
          Not enough memory to create needed Bitmap for image
UNKNOWN
          Unknown error was occurred while loading image
 
Method Summary
static FailReason.FailType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FailReason.FailType[] 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

IO_ERROR

public static final FailReason.FailType IO_ERROR
Input/output error. Can be caused by network communication fail or error while caching image on file system.


DECODING_ERROR

public static final FailReason.FailType DECODING_ERROR
Error while decode image to Bitmap


NETWORK_DENIED

public static final FailReason.FailType NETWORK_DENIED
Network downloads are denied and requested image wasn't cached in disk cache before.


OUT_OF_MEMORY

public static final FailReason.FailType OUT_OF_MEMORY
Not enough memory to create needed Bitmap for image


UNKNOWN

public static final FailReason.FailType UNKNOWN
Unknown error was occurred while loading image

Method Detail

values

public static FailReason.FailType[] 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 (FailReason.FailType c : FailReason.FailType.values())
    System.out.println(c);

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

valueOf

public static FailReason.FailType 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


Copyright © 2011-2014. All Rights Reserved.