mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 01:02:22 +01:00
(Bitbake rev: d0a6e9c5c1887a885e0e73eba264ca66801f5ed0) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
41 lines
879 B
Python
41 lines
879 B
Python
# sherrors.py - shell errors and signals
|
|
#
|
|
# Copyright 2007 Patrick Mezard
|
|
#
|
|
# This software may be used and distributed according to the terms
|
|
# of the GNU General Public License, incorporated herein by reference.
|
|
|
|
"""Define shell exceptions and error codes.
|
|
"""
|
|
|
|
class ShellError(Exception):
|
|
pass
|
|
|
|
class ShellSyntaxError(ShellError):
|
|
pass
|
|
|
|
class UtilityError(ShellError):
|
|
"""Raised upon utility syntax error (option or operand error)."""
|
|
pass
|
|
|
|
class ExpansionError(ShellError):
|
|
pass
|
|
|
|
class CommandNotFound(ShellError):
|
|
"""Specified command was not found."""
|
|
pass
|
|
|
|
class RedirectionError(ShellError):
|
|
pass
|
|
|
|
class VarAssignmentError(ShellError):
|
|
"""Variable assignment error."""
|
|
pass
|
|
|
|
class ExitSignal(ShellError):
|
|
"""Exit signal."""
|
|
pass
|
|
|
|
class ReturnSignal(ShellError):
|
|
"""Exit signal."""
|
|
pass |