schrodinger.application.licensing.licserver.exceptions module

This module contains the set of licserver exceptions.

Hierarchy:

LicenseError
├── AddressError [ValueError]
└── DiagnosticsCollectionError
├── LicenseVerificationError
├── BadLicenseInput [ValueError]
├── InstallError
│   ├── NoWritableDirectoryError
│   └── WrongFileType
└── NetsuiteError
    └── NetsuiteKeyExhausted
exception schrodinger.application.licensing.licserver.exceptions.LicenseError

Bases: Exception

General error.

Base class for all exceptions in this package.

Most callers are expected to have a very short chain back to a specific user action, so errors of this type aim to provide fully-qualified user-facing messages without requiring stack traces to be shown.

exception schrodinger.application.licensing.licserver.exceptions.AddressError

Bases: schrodinger.application.licensing.licserver.exceptions.LicenseError, ValueError

Raised when a caller-supplied server address is invalid.

exception schrodinger.application.licensing.licserver.exceptions.LicenseVerificationError

Bases: schrodinger.application.licensing.licserver.exceptions.LicenseError

Raised when license file fails in verification of local-entitlement.

exception schrodinger.application.licensing.licserver.exceptions.InstallError

Bases: schrodinger.application.licensing.licserver.exceptions.LicenseError

General error while installing a license file.

exception schrodinger.application.licensing.licserver.exceptions.NoWritableDirectoryError(path_errors: Iterator[tuple[str, str]])

Bases: schrodinger.application.licensing.licserver.exceptions.InstallError

Raised when no license directory can be written to.

__init__(path_errors: Iterator[tuple[str, str]])
Parameters

path_errors – ordered mapping of attempted filepaths to the error that prevented writing to them

directories: dict[str, str]

Maps searched directories to the error that prevented writing to them.

exception schrodinger.application.licensing.licserver.exceptions.WrongFileType

Bases: schrodinger.application.licensing.licserver.exceptions.InstallError

Raised when an API expects a specific file type (such as “local-entitlement”), but detects file/data of a different type.

exception schrodinger.application.licensing.licserver.exceptions.BadLicenseInput

Bases: schrodinger.application.licensing.licserver.exceptions.LicenseError, ValueError

Raised when a license file is not in a recognized format.

exception schrodinger.application.licensing.licserver.exceptions.DiagnosticsCollectionError

Bases: Exception

Raised as a general error while encountering issue in collecting diagnostics for troubleshooting.

exception schrodinger.application.licensing.licserver.exceptions.NetsuiteError

Bases: schrodinger.application.licensing.licserver.exceptions.LicenseError

General error while interacting with the NetSuite API.

exception schrodinger.application.licensing.licserver.exceptions.NetsuiteKeyExhausted

Bases: schrodinger.application.licensing.licserver.exceptions.NetsuiteError

Raised when a NetSuite key has been used too many times.

__init__()