java.lang.Object
swim.codec.Diagnostic
- All Implemented Interfaces:
Display
Informational message attached to an input location.
-
Method Summary
Modifier and TypeMethodDescriptioncause()Returns theDiagnosticcause of this diagnostic, forming a linked chain of diagnostics, ornullif this diagnostic has no cause.static Diagnosticstatic Diagnosticstatic Diagnosticstatic Diagnosticstatic Diagnosticstatic Diagnosticcreate(Input input, Tag tag, Severity severity, Diagnostic cause) <T> Output<T>Writes a human readable, display-formatted string representation of this object tooutput.static Diagnosticstatic Diagnosticstatic Diagnosticexpected(int expected, Input input, String note, Diagnostic cause) static Diagnosticexpected(int expected, Input input, Diagnostic cause) static Diagnosticstatic Diagnosticstatic Diagnosticexpected(int expected, Input input, Severity severity, String note, Diagnostic cause) static Diagnosticexpected(int expected, Input input, Severity severity, Diagnostic cause) static Diagnosticstatic Diagnosticstatic Diagnosticexpected(String expected, Input input, String note, Diagnostic cause) static Diagnosticexpected(String expected, Input input, Diagnostic cause) static Diagnosticstatic Diagnosticstatic Diagnosticstatic Diagnosticexpected(String expected, Input input, Severity severity, Diagnostic cause) input()Returns theInputsource to which this diagnostic is attached.message()Returns the help message that describes this diagnostic.static Diagnosticstatic Diagnosticstatic Diagnosticmessage(String message, Input input, String note, Diagnostic cause) static Diagnosticmessage(String message, Input input, Diagnostic cause) static Diagnosticstatic Diagnosticstatic Diagnosticstatic Diagnosticmessage(String message, Input input, Severity severity, Diagnostic cause) note()Returns an informative comment on the source context to which this diagnostic is attached.severity()Returns the level of importance of this diagnostic.tag()Returns the annotated locationTagin theinputto which this diagnostic is attached.toString()toString(OutputSettings settings) static Diagnosticunexpected(Input input) static Diagnosticunexpected(Input input, String note) static Diagnosticunexpected(Input input, String note, Diagnostic cause) static Diagnosticunexpected(Input input, Diagnostic cause) static Diagnosticunexpected(Input input, Severity severity) static Diagnosticunexpected(Input input, Severity severity, String note) static Diagnosticunexpected(Input input, Severity severity, String note, Diagnostic cause) static Diagnosticunexpected(Input input, Severity severity, Diagnostic cause)
-
Method Details
-
input
Returns theInputsource to which this diagnostic is attached. -
tag
Returns the annotated locationTagin theinputto which this diagnostic is attached. -
severity
Returns the level of importance of this diagnostic. -
message
Returns the help message that describes this diagnostic. -
note
Returns an informative comment on the source context to which this diagnostic is attached. -
cause
Returns theDiagnosticcause of this diagnostic, forming a linked chain of diagnostics, ornullif this diagnostic has no cause. -
display
Description copied from interface:DisplayWrites a human readable, display-formatted string representation of this object tooutput. -
toString
-
toString
-
create
public static Diagnostic create(Input input, Tag tag, Severity severity, String message, String note, Diagnostic cause) -
create
-
create
public static Diagnostic create(Input input, Tag tag, Severity severity, String message, Diagnostic cause) -
create
-
create
-
create
-
message
public static Diagnostic message(String message, Input input, Severity severity, String note, Diagnostic cause) -
message
-
message
-
message
-
message
-
message
-
message
-
message
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
unexpected
-
expected
public static Diagnostic expected(int expected, Input input, Severity severity, String note, Diagnostic cause) -
expected
-
expected
-
expected
-
expected
-
expected
-
expected
-
expected
-
expected
public static Diagnostic expected(String expected, Input input, Severity severity, String note, Diagnostic cause) -
expected
-
expected
public static Diagnostic expected(String expected, Input input, Severity severity, Diagnostic cause) -
expected
-
expected
-
expected
-
expected
-
expected
-