Code Monkey home page Code Monkey logo

whattheerrorcode's Introduction

What is The Error Code?

Received an error like:

Domain=NSCocoaErrorDomain 
Code=1590 \"The operation couldn't be completed. (Cocoa error 1590.)

And you have no clue what the code means? Use this app to find a description:

Supported error domains

  • NSCocoaErrorDomain
  • NSURLErrorDomain
  • kCFErrorDomainCFNetwork

Can I help contribute?

Yes, please! Feel free to open a PR and add new error descriptions to this JSON file.

Using ChatGPT to generate JSON

ChatGPT has been a great help in creating JSON output from header files like this one. I've used the following prompt:

Create a JSON array of the following input and use property names key, code, and description: 
"
NSPersistentStoreTimeoutError                    = 134090, // failed to connect to the persistent store within the specified timeout (see NSPersistentStoreTimeoutOption)
NSPersistentStoreUnsupportedRequestTypeError	 = 134091, // an NSPersistentStore subclass was passed an NSPersistentStoreRequest that it did not understand
"

I want to use the app and keep it up to date with the latest errors

Download RocketSim and use it from the Menu Bar.

Author

This library is created by Antoine van der Lee after getting enough likes.

License

WhatTheErrorCode is available under the MIT license. See the LICENSE file for more info.

whattheerrorcode's People

Contributors

avdlee avatar gibachan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

macmark grd888

whattheerrorcode's Issues

Allow copying Table View Cells

There's currently no way to copy values out of the table. It would be nice to make the table clickable and values copyable.

CleanShot 2023-03-21 at 08 48 27@2x

[ERROR REQUEST] NSCocoaErrorDomain 640 file operations

I tried the following input that didn't result in an explanation
I expected this input to work:

NSError 640: Error Domain=NSCocoaErrorDomain Code=640 "The file couldn’t be saved because there isn’t enough space."

Are you aware of what the output error description should be?
The file couldn’t be saved because there isn’t enough space.

List of errors
Can be found here: https://github.com/apple/swift-corelibs-foundation/blob/main/Sources/Foundation/NSError.swift#L632
Only need descriptions

Localised Descriptions

I think a lot of codebases have their own strings for many standard errors like the ones in this repo. Additionally, localised descriptions for HTTP status codes are often required.

Do you think this project might be a good spot to provide a repository of really good messages that are localised in many different languages?

Implement Table sorting

In case there are multiple errors, it would be useful to have the option to sort the SwiftUI Table.

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.