Make the error definitions public

In reference to #432, this patch makes the declarations that are used internally by Sparkle so developers can check what specific error was encountered.