Yeah that's more or less "don't do simple one liners in your application code - write a simple library that does the simple thing, but wraps the simple thing in lots of checks"
There probably is a "design pattern" for that but darned if I can draw it in UML