org.apache.maven.model.building
Interface ModelProblemCollector


public interface ModelProblemCollector

Collects problems that are encountered during model building. The primary purpose of this component is to account for the fact that the problem reporter has/should not have information about the calling context and hence cannot provide an expressive source hint for the model problem. Instead, the source hint is configured by the model builder before it delegates to other components that potentially encounter problems. Then, the problem reporter can focus on providing a simple error message, leaving the donkey work of creating a nice model problem to this component.

Author:
Benjamin Bentmann

Method Summary
 void add(ModelProblem.Severity severity, String message, InputLocation location, Exception cause)
          Adds the specified problem.
 

Method Detail

add

void add(ModelProblem.Severity severity,
         String message,
         InputLocation location,
         Exception cause)
Adds the specified problem.

Parameters:
severity - The severity of the problem, must not be null.
message - The detail message of the problem, may be null.
location - The location of the problem, may be null.
cause - The cause of the problem, may be null.


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.