public class NetworkCallError extends Object
| Constructor and Description |
|---|
NetworkCallError()
Empty constructor used by deserialization.
|
NetworkCallError(Throwable throwable)
Constructs the class setting the throwable and its class name.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
get() |
void |
setClassName(String className)
Sets the name of the class of the throwable.
|
void |
setErrorMessage(String errorMessage)
Sets the error message of the class of the throwable.
|
void |
setThrowable(Throwable throwable)
Sets the throwable that was thrown during a network call.
|
public NetworkCallError()
public NetworkCallError(Throwable throwable)
throwable - Throwable thrown during a network call.public Throwable get()
public void setThrowable(Throwable throwable)
throwable - Throwable that was thrown.public void setClassName(String className)
className - Class name of the throwable.public void setErrorMessage(String errorMessage)
errorMessage - Error msg from the exception.Copyright © 2020 Microsoft Corporation. All rights reserved.