I\'m writing a WordPress plugin and want a consistent way to deal with errors. For example: my plugin includes a shortcode. The shortcode handler outputs some data on-screen