return error with catch exception