Giter Site home page Giter Site logo

Comments (2)

ytti avatar ytti commented on September 27, 2024

I do wonder whose role is what. What is models role, what is input methods role?

Since obviously in most typical case, we use some CLI like mechanism, like SSH or Telnet, and then we do not have any protocol level notofication about success or failure, so if we want to determine that, then it is obviously model's responsibility to figure it out.

But for HTTP, FTP and others, we can determine some errors, should we raise them, or leave them to model as well?

Could there be use-case, where model wants 404 and wants to act on that? And if we make it error, this use-case cannot be satisfied?

You could of course look at the content of the returned string, and determine it is an error, and then raise error from the model, causing failure for that node to be booked.

from oxidized.

marmack95 avatar marmack95 commented on September 27, 2024

It's a simple download of file in http.
ixoff.txt

I see that you manage error 401 for authentification cases.

But not any other HTML Error code.
Error 404 (document not found) is the best known.
Error 400 (Bad Request) / 403 (Forbidden) are also frequent.

If i can i manage http code in my model without rewrite all Mechanize code (i do it in Dell Drac model, because i don't find how to do), it's ok for me.
But i don't find how.

from oxidized.

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.