public class DefinitionProviderProblemBuilder extends Object
DefinitionProvider.Problem
. It is not possible to instantiate this builder directly, but
Problem
provides convenience static methods for that.Modifier and Type | Method and Description |
---|---|
DefinitionProvider.Problem |
build() |
DefinitionProviderProblemBuilder |
withDetails(String details) |
DefinitionProviderProblemBuilder |
withLocation(String location) |
DefinitionProviderProblemBuilder |
withRelatedException(Exception relatedException) |
DefinitionProviderProblemBuilder |
withSeverityType(DefinitionProvider.Problem.SeverityType severityType) |
DefinitionProviderProblemBuilder |
withTitle(String title) |
DefinitionProviderProblemBuilder |
withType(DefinitionProvider.Problem.Type type) |
public DefinitionProviderProblemBuilder withSeverityType(DefinitionProvider.Problem.SeverityType severityType)
public DefinitionProviderProblemBuilder withType(DefinitionProvider.Problem.Type type)
public DefinitionProviderProblemBuilder withTitle(String title)
public DefinitionProviderProblemBuilder withDetails(String details)
public DefinitionProviderProblemBuilder withRelatedException(Exception relatedException)
public DefinitionProviderProblemBuilder withLocation(String location)
location
- the relative location of the problem, within the definition;
transformation problems on definition root (e.g. failure to resolve bean class) may set location as "/".public DefinitionProvider.Problem build()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.