Nuxeo Core Developer Guide

Field, Variable and Parameter Value Enforcement

Updated: October 22, 2018 Page Information Edit on GitHub

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.
2 months ago manonlumeau NXDOC-1650 fix about integrating changes, add mention on multiple attempts
3 years ago Julien Carsique 1
History: Created by Julien Carsique

We'd love to hear your thoughts!

All fields required