# -*- coding: utf-8 -*-
'''
Created on Jul 18, 2013

@author: Carl
'''

from logger import MBLogger

class ServerError(Exception):
    '''
    各种Server错误
    '''
    _errno = None
    _message = None
    
    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno
        
    def details(self):
        MBLogger.error("Error occurred, message(" + self._message + "), code(" + self._errno + ").")
fe18ed5f3c03d894eced11dc348487bac2fd2f99
<mask token>


class ServerError(Exception):
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno

    def details(self):
        MBLogger.error('Error occurred, message(' + self._message +
            '), code(' + self._errno + ').')

<mask token>


class ServerError(Exception):
    <mask token>
    _errno = None
    _message = None

    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno

    def details(self):
        MBLogger.error('Error occurred, message(' + self._message +
            '), code(' + self._errno + ').')

<mask token>


class ServerError(Exception):
    """
    各种Server错误
    """
    _errno = None
    _message = None

    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno

    def details(self):
        MBLogger.error('Error occurred, message(' + self._message +
            '), code(' + self._errno + ').')

<mask token>
from logger import MBLogger


class ServerError(Exception):
    """
    各种Server错误
    """
    _errno = None
    _message = None

    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno

    def details(self):
        MBLogger.error('Error occurred, message(' + self._message +
            '), code(' + self._errno + ').')

# -*- coding: utf-8 -*-
'''
Created on Jul 18, 2013

@author: Carl
'''

from logger import MBLogger

class ServerError(Exception):
    '''
    各种Server错误
    '''
    _errno = None
    _message = None
    
    def __init__(self, message, errno):
        Exception.__init__(self)
        self._message = message
        self._errno = errno
        
    def details(self):
        MBLogger.error("Error occurred, message(" + self._message + "), code(" + self._errno + ").")