public class GHResponse extends Object
Constructor and Description |
---|
GHResponse() |
Modifier and Type | Method and Description |
---|---|
void |
add(PathWrapper altResponse) |
void |
addDebugInfo(String debugInfo) |
GHResponse |
addError(Throwable error) |
GHResponse |
addErrors(List<Throwable> errors) |
List<PathWrapper> |
getAll()
This method returns the best path as well as all alternatives.
|
PathWrapper |
getBest()
Returns the best path.
|
String |
getDebugInfo() |
List<Throwable> |
getErrors()
This method returns all the explicitly added errors and the errors of all paths.
|
PMap |
getHints() |
boolean |
hasAlternatives()
This method returns true if there are alternative paths available besides the best.
|
boolean |
hasErrors()
This method returns true if one of the paths has an error or if the response itself is
erroneous.
|
String |
toString() |
public void add(PathWrapper altResponse)
public PathWrapper getBest()
public List<PathWrapper> getAll()
public boolean hasAlternatives()
public void addDebugInfo(String debugInfo)
public String getDebugInfo()
public boolean hasErrors()
public List<Throwable> getErrors()
public GHResponse addErrors(List<Throwable> errors)
public GHResponse addError(Throwable error)
public PMap getHints()
Copyright © 2012–2018. All rights reserved.