MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getErrorString

Method getErrorString

src/main/java/core/org/xbill/DNS/Lookup.java:642–655  ·  view source on GitHub ↗

Returns an error string describing the result code of this lookup. @return A string, which may either directly correspond the result code or be more specific. @throws IllegalStateException The lookup has not completed.

()

Source from the content-addressed store, hash-verified

640 * @throws IllegalStateException The lookup has not completed.
641 */
642public String
643getErrorString() {
644 checkDone();
645 if (error != null)
646 return error;
647 switch (result) {
648 case SUCCESSFUL: return "successful";
649 case UNRECOVERABLE: return "unrecoverable error";
650 case TRY_AGAIN: return "try again";
651 case HOST_NOT_FOUND: return "host not found";
652 case TYPE_NOT_FOUND: return "type not found";
653 }
654 throw new IllegalStateException("unknown result");
655}
656
657}

Callers

nothing calls this directly

Calls 1

checkDoneMethod · 0.95

Tested by

no test coverage detected