mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-10 12:27:46 +00:00
Move ResolverError over to exceptions where it seems to be long.
This commit is contained in:
@@ -16,6 +16,10 @@ class ConnexionException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ResolverError(LookupError):
|
||||
pass
|
||||
|
||||
|
||||
class InvalidSpecification(ConnexionException):
|
||||
def __init__(self, reason='Unknown Reason'):
|
||||
"""
|
||||
|
||||
@@ -15,14 +15,11 @@ import logging
|
||||
import re
|
||||
|
||||
import connexion.utils as utils
|
||||
from connexion.exceptions import ResolverError
|
||||
|
||||
logger = logging.getLogger('connexion.resolver')
|
||||
|
||||
|
||||
class ResolverError(LookupError):
|
||||
pass
|
||||
|
||||
|
||||
class Resolution(object):
|
||||
def __init__(self, function, operation_id):
|
||||
"""
|
||||
|
||||
@@ -4,7 +4,7 @@ import pathlib
|
||||
import tempfile
|
||||
|
||||
from connexion.api import Api
|
||||
from connexion.resolver import ResolverError
|
||||
from connexion.exceptions import ResolverError
|
||||
from swagger_spec_validator.common import SwaggerValidationError
|
||||
from yaml import YAMLError
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import connexion.app
|
||||
from connexion.operation import Operation
|
||||
from connexion.resolver import Resolver, RestyResolver, ResolverError
|
||||
from connexion.exceptions import ResolverError
|
||||
from connexion.resolver import Resolver, RestyResolver
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user