Skip to content

Unable to retrieve causing Exceptions for all the Exceptions which have occured in Sub Schema #106

@santpandey

Description

@santpandey

I have a schema where the exception occurred and further down the schema further exceptions also occurred. But there is no method in ValidateException class which actually collects all the Exception right from say(node to leaf) and returns list of that.

I was debugging and I got a ValidationException object through getCausingException(). But when I expand this object through debugger tool, I could see that it has further 3 ValidationException objects which have specific error message I was looking for.

So what I mean is that the structure is like a graph and we might need to do Depth First Search to retrieve all messages(which I am looking) ValidationObject.

Do we need to do DFS for this or is there an endpoint to get this(which I might have missed)

Another point I want to bring is that there is an instance variable called "detailMessage" in ValidationException object when I see through debugger tool, but ValidationException class doesn't have this "detailMessage" defined in it.(Screenshot attached)
everit1

Please do let me know if I have missed something

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions