Source code for BAC0.core.io.IOExceptions
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 by Christian Tremblay, P.Eng <christian.tremblay@servisys.com>
# Licensed under LGPLv3, see file LICENSE in this source tree.
#
"""
IOExceptions.py - BAC0 application level exceptions
"""
[docs]class WritePropertyException(Exception):
"""
This exception is used when trying to write a property.
"""
pass
[docs]class WritePropertyCastError(Exception):
"""
This exception is used when trying to write to a property and a cast error occurs.
"""
pass
[docs]class UnknownPropertyError(Exception):
pass
[docs]class UnknownObjectError(Exception):
pass
[docs]class ReadPropertyException(ValueError):
"""
This exception is used when trying to read a property.
"""
pass
[docs]class ReadPropertyMultipleException(ValueError):
"""
This exception is used when trying to read multiple properties.
"""
pass
[docs]class ReadRangeException(ValueError):
"""
This exception is used when trying to read a property.
"""
pass
[docs]class NoResponseFromController(Exception):
"""
This exception is used when trying to read or write and there is not answer.
"""
pass
[docs]class UnrecognizedService(Exception):
"""
This exception is used when trying to read or write and there is not answer.
"""
pass
[docs]class WriteAccessDenied(Exception):
"""
This exception is used when trying to write and controller refuse it.
"""
pass
[docs]class APDUError(Exception):
pass
[docs]class OutOfServiceNotSet(Exception):
"""
This exception is used when trying to simulate a point and the out of service property is false.
"""
pass
[docs]class OutOfServiceSet(Exception):
"""
This exception is used when trying to set the out of service property to
false to release the simulation...and it doesn't work.
"""
pass
[docs]class NetworkInterfaceException(Exception):
"""
This exception covers different network related exc eption (like finding IP
or subnet mask...)
"""
pass
[docs]class ApplicationNotStarted(Exception):
"""
Application not started, no communication available.
"""
pass
[docs]class BokehServerCantStart(Exception):
"""
Raised if Bokeh Server can't be started automatically
"""
pass
[docs]class SegmentationNotSupported(Exception):
pass
[docs]class BadDeviceDefinition(Exception):
pass
[docs]class InitializationError(Exception):
pass
[docs]class Timeout(Exception):
pass
[docs]class RemovedPointException(Exception):
"""
When defining a device from DB it may not be identical to the
actual device.
"""
pass
[docs]class BufferOverflow(Exception):
"""
Buffer capacity of device exceeded.
"""
pass
# For devices
[docs]class DeviceNotConnected(Exception):
pass
[docs]class WrongParameter(Exception):
pass
[docs]class NumerousPingFailures(Exception):
pass