Package org.apache.maven.exception
Class DefaultExceptionHandler
- java.lang.Object
-
- org.apache.maven.exception.DefaultExceptionHandler
-
- All Implemented Interfaces:
ExceptionHandler
@Component(role=ExceptionHandler.class) public class DefaultExceptionHandler extends java.lang.Object implements ExceptionHandler
Transform an exception into useful end-user message.
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringgetMessage(java.lang.String message, java.lang.Throwable exception)private java.lang.StringgetReference(java.lang.Throwable exception)private ExceptionSummaryhandle(java.lang.String message, java.lang.Throwable exception)private ExceptionSummaryhandle(ModelProblem problem, java.lang.String projectId)private ExceptionSummaryhandle(ProjectBuildingResult result)ExceptionSummaryhandleException(java.lang.Throwable exception)private booleanisNoteworthyException(java.lang.Throwable exception)private java.lang.Stringjoin(java.lang.String message1, java.lang.String message2)
-
-
-
Method Detail
-
handleException
public ExceptionSummary handleException(java.lang.Throwable exception)
- Specified by:
handleExceptionin interfaceExceptionHandler
-
handle
private ExceptionSummary handle(java.lang.String message, java.lang.Throwable exception)
-
handle
private ExceptionSummary handle(ProjectBuildingResult result)
-
handle
private ExceptionSummary handle(ModelProblem problem, java.lang.String projectId)
-
getReference
private java.lang.String getReference(java.lang.Throwable exception)
-
isNoteworthyException
private boolean isNoteworthyException(java.lang.Throwable exception)
-
getMessage
private java.lang.String getMessage(java.lang.String message, java.lang.Throwable exception)
-
join
private java.lang.String join(java.lang.String message1, java.lang.String message2)
-
-