How to use the iroha.helper.exception.IrohaPythonException function in iroha

To help you get started, we’ve selected a few iroha examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"

class NotConnectionStubException(IrohaPythonException):
    message = "NotConnectionStubException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"

class NotConnectionStubException(IrohaPythonException):
    message = "NotConnectionStubException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
message = "Occured Error"
    def __init__(self,option=None):
        logger.warning(self.message)
        if option:
            logger.warning(option)

"""
    HasFieldException
"""
class NotCommandException(IrohaPythonException):
    message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"

class NotConnectionStubException(IrohaPythonException):
    message = "NotConnectionStubException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
"""
    HasFieldException
"""
class NotCommandException(IrohaPythonException):
    message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"

class NotConnectionStubException(IrohaPythonException):
    message = "NotConnectionStubException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
if option:
            logger.warning(option)

"""
    HasFieldException
"""
class NotCommandException(IrohaPythonException):
    message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"


class InvalidIpException(IrohaPythonException):
    message = "InvalidIpException"

class InvalidPortException(IrohaPythonException):
    message = "InvalidPortException"

class NotConnectionStubException(IrohaPythonException):
    message = "NotConnectionStubException"
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
from __future__ import absolute_import, division, print_function, unicode_literals
from iroha.helper import logger

class IrohaPythonException(Exception):
    message = "Occured Error"
    def __init__(self,option=None):
        logger.warning(self.message)
        if option:
            logger.warning(option)

"""
    HasFieldException
"""
class NotCommandException(IrohaPythonException):
    message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
github hyperledger / iroha-python / iroha / helper / exception.py View on Github external
from iroha.helper import logger

class IrohaPythonException(Exception):
    message = "Occured Error"
    def __init__(self,option=None):
        logger.warning(self.message)
        if option:
            logger.warning(option)

"""
    HasFieldException
"""
class NotCommandException(IrohaPythonException):
    message = "NotCommandException"

class NotErrorResponseException(IrohaPythonException):
    message = "NotErrorResponseException"

class NotAccountResponseException(IrohaPythonException):
    message = "NotAccountResponseException"

class NotAccountAssetResponseException(IrohaPythonException):
    message = "NotAccountAssetResponseException"

class NotSignatoriesResponseExcepiton(IrohaPythonException):
    message = "NotSignatoriesResponseExcepiton"


class NotTransactionsResponseException(IrohaPythonException):
    message = "NotTransactionsResponseException"