Exceptions Module (sbpy.exceptions)

Introduction

exceptions provides the SbpyExecption and SbpyWarning base classes, from which all sbpy-specific exceptions and warnings should be derived.

To suppress all sbpy warnings:

` import warnings from sbpy.exceptions import SbpyWarning warnings.simplefilter('ignore', SbpyWarning) `

See the Astropy documentation for more ways to suppress warnings.

Reference/API

sbpy exceptions and warnings

General exceptions/warnings for all of sbpy are specified below. Exceptions and warnings that are sub-module specific should be in the respective sub-module.

Classes

OptionalPackageUnavailable

Optional package is not avilable.

RequiredPackageUnavailable

Required package is not available.

SbpyException

Exception base class for all sbpy exceptions.

SbpyWarning

Warning base class for all sbpy warnings.

Class Inheritance Diagram

Inheritance diagram of sbpy.exceptions.OptionalPackageUnavailable, sbpy.exceptions.RequiredPackageUnavailable, sbpy.exceptions.SbpyException, sbpy.exceptions.SbpyWarning