Package io.airlift.drift.codec.metadata
Class MetadataErrors
java.lang.Object
io.airlift.drift.codec.metadata.MetadataErrors
MetadataErrors collects all known issues with metadata extraction. This allows all known problems to be reported together instead of one at a time.
This code is heavily based on https://github.com/dain/platform/blob/master/configuration/src/main/java/com/proofpoint/configuration/Problems.java
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.airlift.drift.codec.metadata.MetadataErrors.NullMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddWarning(String format, Object... params) voidaddWarning(Throwable e, String format, Object... params) voidtoString()
-
Field Details
-
NULL_MONITOR
public static final io.airlift.drift.codec.metadata.MetadataErrors.NullMonitor NULL_MONITOR
-
-
Constructor Details
-
MetadataErrors
public MetadataErrors() -
MetadataErrors
-
-
Method Details
-
throwIfHasErrors
- Throws:
MetadataErrorException
-
getErrors
-
addError
-
addError
-
getWarnings
-
addWarning
-
addWarning
-
toString
-