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

Add a '\n' to the last line of the file to fix: No newline at end of file (Bitbake rev: 54f1359ed2e9d47980cd221b7b43ef56543fe06d) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
42 lines
880 B
Python
42 lines
880 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
|