123456789101112131415161718192021 |
- # -*- coding: utf-8 -*-
- # !/usr/bin/env python
- from typing import Optional
- from library.jdbase.exceptions import JDException
- from library.jdopen import JDOpenErrorCode
- class JDOpenValidationError(JDException):
- def __init__(self, tips, lvalue, rvalue, client = None):
- # type: (basestring, basestring, basestring, Optional[object])->None
- super(JDOpenValidationError, self).__init__(
- errCode = str(JDOpenErrorCode.MY_VALID_ERROR), errMsg = tips, client = client)
- self.lvalue = lvalue
- self.rvalue = rvalue
- def __repr__(self):
- return '{}({} != {})'.format(self.errMsg, self.lvalue, self.rvalue)
|