Skip to content

Have a default node handler #4

@zherebjatjew

Description

@zherebjatjew

Sometimes it is needed to have a default behavior for nodes that do not match any existing patterns:

handler
    .or("essay", this::printEssay)
    .or("article", this::printArticle)
    .default(this::reportError);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions