Giter Site home page Giter Site logo

Comments (4)

mevdschee avatar mevdschee commented on May 7, 2024 1

Yes, good idea, it crossed my mind as well. There is no standard for exchanging duplicate key information so it seems the error messages of the database needs to be parsed. There are some obvious drawbacks to this approach. We can also add a header with the error message in case of a "null". What do you think?

from php-crud-api.

resident0 avatar resident0 commented on May 7, 2024

That's a good point. Adding an error message to the 'null' case makes the most sense.

from php-crud-api.

ubergeekzone avatar ubergeekzone commented on May 7, 2024

Another thing i have noticed if a database is blank or mysql can't connect, We don't throw an error message, It just displays the error message in a not intuitive way. I feel we should be throwing an error code along with the message. I feel a big part of an API is status codes and error handling., I could help integrate this feature,

Do you have a way currently we could override into a function? sorry if that makes no sense its nearly 2:00 AM here.

from php-crud-api.

mevdschee avatar mevdschee commented on May 7, 2024

This is fixed in v2 (beta).

from php-crud-api.

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.