Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B Bolts-ObjC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 34
    • Issues 34
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • BoltsFramework
  • Bolts-ObjC
  • Issues
  • #328
Closed
Open
Issue created Mar 08, 2019 by Alessandro@wolfAle

setException deprecated

Hi guys,

I'm working on an old codebase and we have many warnings about: 'exception' is deprecated: 'BFTask' exception handling is deprecated and will be removed in a future It happens in cases like this:

@try {
        [[ILRLogin sharedManager] activeWithServer:server];
        LRSession *session = [[ILRLogin sharedManager] getAuthSession];
        [session onSuccess:^(id result) {
           ............
        } onFailure:^(NSError *err) {
           ............
        }];        
    } @catch (NSException *exception) {
        [task setException:exception]; --> HERE
    }

or even in the caller, where I check if(task.exception). I googled a lot but I couldn't find advices about what to do instead. Is there a replacement method? Should I just ignore the exception in the catch block? Can you please point me in the right direction here?

Thanks, Alessandro

Assignee
Assign to
Time tracking