<reponame>RobotnikAutomation/ros-kafka-connector
import logging


class AuthorizationException(Exception):
    def __init__(self, *args):
        if args:
            logging.error("Authorization error occurred")
            self.message = args[0]
        else:
            self.message = None

    def __str__(self):
        return 'Authorization error, {0} '.format(self.message)
