Coder Social home page Coder Social logo

Comments (6)

bretterer avatar bretterer commented on August 24, 2024

@achantavy Thank you for the congrats! We did make a bunch of changes in this version of the SDK.

With these changes were changes to the errors. You can find the new error classes in the okta/errors Directory

All Okta errors will be wrapped up in the OktaAPIError class and yes, we still expose the Okta error code in the class.

Please let us know if you have any other concerns or issues with our new SDK version

from okta-sdk-python.

camillsir avatar camillsir commented on August 24, 2024

I'm doing a similar transition from version 0.0.4 to 1.x and discovered this change. When I tried using the new error classes I'm getting an exception.

TypeError: catching classes that do not inherit from BaseException is not allowed

It looks like the base error class does not inherit from Exception or BaseException which is a requirement.

from okta-sdk-python.

serhiibuniak-okta avatar serhiibuniak-okta commented on August 24, 2024

@camillsir This Error class wasn't designed to be an Exception. It is used just to pass specific error messages. On the other hand, your notice is really good. How did you want to use it? Maybe, it's worth to make custom exceptions.

from okta-sdk-python.

bretterer avatar bretterer commented on August 24, 2024

Internal Ref: OKTA-347117

from okta-sdk-python.

serhiibuniak-okta avatar serhiibuniak-okta commented on August 24, 2024

@camillsir Custom exceptions added with version 1.1.0 https://github.com/okta/okta-sdk-python#exceptions

Please let us know if you have any other concerns or issues with our new SDK version.

from okta-sdk-python.

serhiibuniak-okta avatar serhiibuniak-okta commented on August 24, 2024

I'm closing this issue as resolved. @achantavy @camillsir if you still have questions, feel free to reopen or create a new issue.

from okta-sdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.