Giter Site home page Giter Site logo

Comments (5)

Dijji avatar Dijji commented on August 24, 2024

My expectation was that exceptions will be thrown only if XstReader had some deficiency, or the file being read was corrupt. What use cases are you encountering where you need an application built on top of XstReader to capture exceptions? I’m asking because I believe that use cases should always drive design, and I don’t currently have any of my own to work off.

from xstreader.

thims avatar thims commented on August 24, 2024

or the file being read was corrupt.

This. And at the higher level you can't differentiate exceptions.

from xstreader.

Dijji avatar Dijji commented on August 24, 2024

Having looked at the exceptions that I throw, it would be better if I changed them to a specific exception of the sort that you suggest. I will add it to the work list.

Of course, this doesn’t guarantee that no other exceptions will ever be thrown: exceptions may be thrown by system functions that I call. The only way to guarantee isolation of all exceptions from my code is to wrap all calls into it with try/catch and throw an exception of your own.

from xstreader.

Dijji avatar Dijji commented on August 24, 2024

I have made the suggested changes to the source files. However, there doesn’t seem enough to justify a new release at this time, especially as the changes will only be significant to another program which embeds this one at the source level.

from xstreader.

Dijji avatar Dijji commented on August 24, 2024

This change was released as part of Version 1.3

Dijji

from xstreader.

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.