Package org.obolibrary.robot
Class ExceptionHelper
- java.lang.Object
-
- org.obolibrary.robot.ExceptionHelper
-
public class ExceptionHelper extends Object
Convenience class to handle formatting error messages and returning links to user support.- Author:
- Becky Tauber
-
-
Constructor Summary
Constructors Constructor Description ExceptionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidhandleException(Exception exception)Prints the exception details as errors, including help URL (if the exception message contains a valid exception ID).
-
-
-
Method Detail
-
handleException
public static void handleException(Exception exception)
Prints the exception details as errors, including help URL (if the exception message contains a valid exception ID). Expects the exception message to be formatted as: "{ID} :: {message}". If message is not formatted, will just log the message.- Parameters:
exception- the exception
-
-