From: David ‘Bombe’ Roden Date: Tue, 24 Mar 2009 15:20:16 +0000 (+0100) Subject: Add “fatal” flag. X-Git-Tag: v0.1.1~70 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3a6a9af25afd6fb56df840ffa9996e9e97c76033;p=jFCPlib.git Add “fatal” flag. --- diff --git a/src/net/pterodactylus/fcp/GetFailed.java b/src/net/pterodactylus/fcp/GetFailed.java index 161da9e..095c82e 100644 --- a/src/net/pterodactylus/fcp/GetFailed.java +++ b/src/net/pterodactylus/fcp/GetFailed.java @@ -143,6 +143,17 @@ public class GetFailed extends BaseMessage { } /** + * Returns whether the request failed fatally. If a request fails fatally it + * can never complete, even with inifinite retries. + * + * @return true if the request failed fatally, + * false otherwise + */ + public boolean isFatal() { + return Boolean.valueOf(getField("Fatal")); + } + + /** * Returns a list of complex error codes with the message. Use * {@link #getComplexErrorDescription(int)} and * {@link #getComplexErrorCount(int)} to get details.