net.tomp2p.connection
Enum PeerException.AbortCause
java.lang.Object
java.lang.Enum<PeerException.AbortCause>
net.tomp2p.connection.PeerException.AbortCause
- All Implemented Interfaces:
- Serializable, Comparable<PeerException.AbortCause>
- Enclosing class:
- PeerException
public static enum PeerException.AbortCause
- extends Enum<PeerException.AbortCause>
USER_ABORT means that this peer aborts the communication. PEER_ERROR means that the other peer did not react as
expected (e.g., no reply). PEER_ABORT means that the other peer found an error on our side (e.g., if this peer
thinks the other peer is someone else)
- Author:
- Thomas Bocek
USER_ABORT
public static final PeerException.AbortCause USER_ABORT
PEER_ERROR
public static final PeerException.AbortCause PEER_ERROR
PEER_ABORT
public static final PeerException.AbortCause PEER_ABORT
TIMEOUT
public static final PeerException.AbortCause TIMEOUT
values
public static PeerException.AbortCause[] 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 (PeerException.AbortCause c : PeerException.AbortCause.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PeerException.AbortCause 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 © 2013. All Rights Reserved.