# Path: demo/catch/serve.py
# class CustomException(Exception):
#     pass


import json
import falcon
from demo.catch.serve import CustomException




def get_it(name):
    raise CustomException('haha')
    return {
        'get': name
    }


def post_it(name):
    raise CustomException('haha')
    return {
        'post': name
    }


def post_excp(req, resp, error):

# Path: demo/catch/serve.py
# class CustomException(Exception):
#     pass


# Path: demo/catch/ops/hello.py
import json
import falcon
from demo.catch.serve import CustomException





def get_it(name):
    raise CustomException('haha')
    return {
        'get': name
    }


def post_it(name):
    raise CustomException('haha')
    return {
        'post': name
    }


def post_excp(req, resp, error):

    if type(error) == CustomException: