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.String
getMessage(java.lang.String message, java.lang.Throwable exception)
private java.lang.String
getReference(java.lang.Throwable exception)
private ExceptionSummary
handle(java.lang.String message, java.lang.Throwable exception)
private ExceptionSummary
handle(ModelProblem problem, java.lang.String projectId)
private ExceptionSummary
handle(ProjectBuildingResult result)
ExceptionSummary
handleException(java.lang.Throwable exception)
private boolean
isNoteworthyException(java.lang.Throwable exception)
private java.lang.String
join(java.lang.String message1, java.lang.String message2)
-
-
-
Method Detail
-
handleException
public ExceptionSummary handleException(java.lang.Throwable exception)
- Specified by:
handleException
in 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)
-
-