2019-09-28 07:29:15 +01:00
|
|
|
"""
|
|
|
|
Provides CORE specific errors.
|
|
|
|
"""
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
|
|
|
|
class CoreCommandError(subprocess.CalledProcessError):
|
|
|
|
"""
|
|
|
|
Used when encountering internal CORE command errors.
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __str__(self):
|
2019-10-10 23:25:12 +01:00
|
|
|
return "Command(%s), Status(%s):\nstdout: %s\nstderr: %s" % (
|
|
|
|
self.cmd,
|
|
|
|
self.returncode,
|
|
|
|
self.output,
|
|
|
|
self.stderr,
|
|
|
|
)
|
2019-09-28 07:29:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class CoreError(Exception):
|
|
|
|
"""
|
|
|
|
Used for errors when dealing with CoreEmu and Sessions.
|
|
|
|
"""
|
|
|
|
|
|
|
|
pass
|