T - The error type. Typically a long or integer describing an error code.public class DNSError<T> extends 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.
|
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()
Copyright © 2010–2021 The Direct Project. All rights reserved.