T - The error type. Typically a long or integer describing an error code.public class DNSError<T>
extends java.lang.Object
| Constructor and Description |
|---|
DNSError(T error)
Constructs a new DNSError.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getError()
Gets the internal error.
|
static <T> DNSError<T> |
newError(T error)
Creates a new DNSError with an internal error code.
|
java.lang.String |
toString() |
public DNSError(T error)
error - The error describing the error condition.public static <T> DNSError<T> newError(T error)
T - The error Type. Typically a long or integer describing an error code.error - The error describing the error condition.public T getError()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010-2018 The Direct Project. All Rights Reserved.