public abstract class WithDiagnostics
extends java.lang.Object
When a function returns a class that extend this, one should call
isError()
or canProceed()
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(edu.illinois.ncsa.daffodil.api.WithDiagnostics wd) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProceed()
Determine if this object can be used in any future parse activities
|
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(edu.illinois.ncsa.daffodil.api.WithDiagnostics wd)
public boolean isError()
public boolean canProceed()
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 or canProceed()
is true.