public class ValidationProblem extends Object implements SchemaLibrary.Problem
Constructor and Description |
---|
ValidationProblem(SchemaLibrary.ProblemType type,
Path path,
String reason,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Get the exception that was the cause of this problem, if there was an exception.
|
Path |
getPath()
The path to the field about which this problem applies.
|
String |
getReason()
Get the message describing the problem.
|
SchemaLibrary.ProblemType |
getType()
Get the type of problem.
|
String |
toString() |
public ValidationProblem(SchemaLibrary.ProblemType type, Path path, String reason, Throwable cause)
public SchemaLibrary.ProblemType getType()
SchemaLibrary.Problem
getType
in interface SchemaLibrary.Problem
public Path getPath()
SchemaLibrary.Problem
getPath
in interface SchemaLibrary.Problem
public String getReason()
SchemaLibrary.Problem
getReason
in interface SchemaLibrary.Problem
public Throwable getCause()
SchemaLibrary.Problem
getCause
in interface SchemaLibrary.Problem
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.