mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

The pysh we're using is modified, and we don't want to risk it conflicting with one from elsewhere. (Bitbake rev: 1cbf8a9403b4b60d59bfd90a51c3e4246ab834d6) 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 |