Package name.martingeisse.grumpyjson
Class FieldErrorNode.InternalException
java.lang.Object
name.martingeisse.grumpyjson.FieldErrorNode
name.martingeisse.grumpyjson.FieldErrorNode.InternalException
- Enclosing class:
FieldErrorNode
A leaf node with an internal exception. The exception message and details will be hidden from the client, so
we don't leak any internal information, but we want to make it available internally for debugging. The client
will see the field path and a generic error message and so might be able to guess what the problem is.
This node type only handles Exception, not Throwable in general. The latter will not be caught
at all since they usually indicate much more fundamental problems.
-
Nested Class Summary
Nested classes/interfaces inherited from class name.martingeisse.grumpyjson.FieldErrorNode
FieldErrorNode.Field, FieldErrorNode.FlattenedError, FieldErrorNode.InternalException, FieldErrorNode.Message, FieldErrorNode.Siblings -
Method Summary
Modifier and TypeMethodDescriptionprotected voidflatten(List<FieldErrorNode.FlattenedError> errors, List<String> segments) NOT PUBLIC APIGetter for the exception.
-
Method Details
-
getException
Getter for the exception.- Returns:
- the exception, without any field information.
-
flatten
Description copied from class:FieldErrorNodeNOT PUBLIC API- Specified by:
flattenin classFieldErrorNode- Parameters:
errors- ...segments- ...
-