Just as all other elements, the custom exception could be public so that on consumer espaces you can have error handling for specific custom exceptions of the producer espaces.
Showing what kind of exceptions are thrown in the tooltip of a user action would also be a good improvement