From 3a6a9af25afd6fb56df840ffa9996e9e97c76033 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 24 Mar 2009 16:20:16 +0100 Subject: [PATCH] =?utf8?q?Add=20=E2=80=9Cfatal=E2=80=9D=20flag.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/net/pterodactylus/fcp/GetFailed.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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. -- 2.7.4