Source code for nxpy.command.error

# nxpy.command package -------------------------------------------------------

# Copyright Nicola Musatti 2010 - 2014
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

# See http://nxpy.sourceforge.net for library home page. ---------------------

r"""
Exception classes for the nxpy.command package.

"""


[docs]class Error(Exception): r"""Package exceptions' base class."""
[docs]class BadLogFormat(Error): r"""Raised if the requested formatting option is unknown."""
[docs]class ExpectError(Exception): """Raised on invalid input from stdout or stderr."""
[docs]class TimeoutError(Exception): """Raised when expect didn't satisfy a timing constraint."""
[docs]class TimerError(Exception): """Raised on misuse of the Timer class."""