I hadn't put any validation in this API, messagebox or the library one because they are internal APIs and go through validation on the higher-level APIs.