Module src.onionrexceptions
Onionr - Private P2P Communication
This file contains exceptions for onionr
Expand source code
"""
    Onionr - Private P2P Communication
    This file contains exceptions for onionr
"""
"""
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
"""
# general exceptions
class NotFound(Exception):
    pass
class Unknown(Exception):
    pass
class Invalid(Exception):
    pass
# communicator exceptions
class OnlinePeerNeeded(Exception):
    pass
# crypto exceptions
class InvalidPubkey(Exception):
    pass
class KeyNotKnown(Exception):
    pass
class DecryptionError(Exception):
    pass
class PasswordStrengthError(Exception):
    pass
class SignatureError(Exception):
    pass
# block exceptions
class ReplayAttack(Exception):
    pass
class InvalidUpdate(Exception):
    pass
class DifficultyTooLarge(Exception):
    pass
class InvalidMetadata(Exception):
    pass
class BlacklistedBlock(Exception):
    pass
class DataExists(Exception):
    pass
class NoDataAvailable(Exception):
    pass
class InvalidHexHash(Exception):
    """When a string is not a valid hex string of appropriate length for a hash value"""
    pass
class InvalidProof(Exception):
    """When a proof is invalid or inadequate"""
    pass
# network level exceptions
class MissingPort(Exception):
    pass
class InvalidAddress(Exception):
    pass
class InvalidAPIVersion(Exception):
    pass
class Timeout(Exception):
    pass
# file exceptions
class DiskAllocationReached(Exception):
    pass
# onionrsocket exceptions
class MissingAddress(Exception):
    pass
# Contact exceptions
class ContactDeleted(Exception):
    pass
# Version Errors
class PythonVersion(Exception):
    pass
# Auditing exceptions
class NetworkLeak(Exception):
    pass
class ArbitraryCodeExec(Exception):
    pass
Classes
class ArbitraryCodeExec (...)- 
Common base class for all non-exit exceptions.
Expand source code
class ArbitraryCodeExec(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class BlacklistedBlock (...)- 
Common base class for all non-exit exceptions.
Expand source code
class BlacklistedBlock(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class ContactDeleted (...)- 
Common base class for all non-exit exceptions.
Expand source code
class ContactDeleted(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class DataExists (...)- 
Common base class for all non-exit exceptions.
Expand source code
class DataExists(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class DecryptionError (...)- 
Common base class for all non-exit exceptions.
Expand source code
class DecryptionError(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class DifficultyTooLarge (...)- 
Common base class for all non-exit exceptions.
Expand source code
class DifficultyTooLarge(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class DiskAllocationReached (...)- 
Common base class for all non-exit exceptions.
Expand source code
class DiskAllocationReached(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class Invalid (...)- 
Common base class for all non-exit exceptions.
Expand source code
class Invalid(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidAPIVersion (...)- 
Common base class for all non-exit exceptions.
Expand source code
class InvalidAPIVersion(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidAddress (...)- 
Common base class for all non-exit exceptions.
Expand source code
class InvalidAddress(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidHexHash (...)- 
When a string is not a valid hex string of appropriate length for a hash value
Expand source code
class InvalidHexHash(Exception): """When a string is not a valid hex string of appropriate length for a hash value""" passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidMetadata (...)- 
Common base class for all non-exit exceptions.
Expand source code
class InvalidMetadata(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidProof (...)- 
When a proof is invalid or inadequate
Expand source code
class InvalidProof(Exception): """When a proof is invalid or inadequate""" passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidPubkey (...)- 
Common base class for all non-exit exceptions.
Expand source code
class InvalidPubkey(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class InvalidUpdate (...)- 
Common base class for all non-exit exceptions.
Expand source code
class InvalidUpdate(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class KeyNotKnown (...)- 
Common base class for all non-exit exceptions.
Expand source code
class KeyNotKnown(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class MissingAddress (...)- 
Common base class for all non-exit exceptions.
Expand source code
class MissingAddress(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class MissingPort (...)- 
Common base class for all non-exit exceptions.
Expand source code
class MissingPort(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class NetworkLeak (...)- 
Common base class for all non-exit exceptions.
Expand source code
class NetworkLeak(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class NoDataAvailable (...)- 
Common base class for all non-exit exceptions.
Expand source code
class NoDataAvailable(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class NotFound (...)- 
Common base class for all non-exit exceptions.
Expand source code
class NotFound(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class OnlinePeerNeeded (...)- 
Common base class for all non-exit exceptions.
Expand source code
class OnlinePeerNeeded(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class PasswordStrengthError (...)- 
Common base class for all non-exit exceptions.
Expand source code
class PasswordStrengthError(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class PythonVersion (...)- 
Common base class for all non-exit exceptions.
Expand source code
class PythonVersion(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class ReplayAttack (...)- 
Common base class for all non-exit exceptions.
Expand source code
class ReplayAttack(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class SignatureError (...)- 
Common base class for all non-exit exceptions.
Expand source code
class SignatureError(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class Timeout (...)- 
Common base class for all non-exit exceptions.
Expand source code
class Timeout(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException
 
 class Unknown (...)- 
Common base class for all non-exit exceptions.
Expand source code
class Unknown(Exception): passAncestors
- builtins.Exception
 - builtins.BaseException