Jim Reverend (revjim) wrote in lj_dev,
Jim Reverend
revjim
lj_dev

protocol handler question...

I am creating a LiveJournal library for PHP.

Which is better to do in the case of an error (i.e. non 200 reply from the server, or success == "FAIL"): call die()... or store the error and make the user of the library check to see if an error occurred after each function call, therefore allowing them to handle errors in thier own way?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments