Nuxeo Core Developer Guide

Field, Variable and Parameter Value Enforcement

Updated: November 7, 2021

Assertions on variables and parameters

This page is a work in progress: it will address the recommended solution to check for field, variable and parameter values. How to express and check that some can or cannot be null; how to mark security sensitive parameters; ...

Programming With Assertions (aka assert statements)


There are many situations where it is good to use assertions, including:

There are also situations where you should not use them:

  • Do not use assertions for argument checking in public methods.
  • Do not use assertions to do any work that your application requires for correct operation.

We'd love to hear your thoughts!

All fields required