public abstract class WithDiagnostics
extends java.lang.Object
implements scala.Serializable
When a function returns a class that extend this, one should call
isError()
on that class before performing any further
actions. If an error exists, any use of that class, aside from those
functions in WithDiagnostics
, is invalid and will result in an
Exception.
Constructor and Description |
---|
WithDiagnostics(org.apache.daffodil.lib.api.WithDiagnostics wd) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Diagnostic> |
getDiagnostics()
Get the list of
Diagnostic 's created during the construction of the parent object |
boolean |
isError()
Determine if any errors occurred in the creation of the parent object.
|
public WithDiagnostics(org.apache.daffodil.lib.api.WithDiagnostics wd)
public java.util.List<Diagnostic> getDiagnostics()
Diagnostic
's created during the construction of the parent object
Diagnostic
's. May contain errors or warnings, and so may be non-empty even if isError()
is false.public boolean isError()