Error class for command line applications