]> projects.mako.cc - selectricity-live/commit
Improve consistency of XMLRPC error reporting. Now, all error conditions will raise...
authorJohn Dong <jdong@mit.edu>
Fri, 17 Aug 2007 23:16:34 +0000 (19:16 -0400)
committerJohn Dong <jdong@mit.edu>
Fri, 17 Aug 2007 23:16:34 +0000 (19:16 -0400)
commit39db2eaf49aee569e9d216d312abba7388e8529d
treed442bda92669f395d00610d3a99c286bd6c5bfd8
parent14836effd31a54f1ff693f423c062691b4f64768
Improve consistency of XMLRPC error reporting. Now, all error conditions will raise an exception. Before, there was an inconsistent mix between raising exceptions and returning nil objects. Nil objects are much less desirable because the client must explicitly check for errors and some errors might silently pass through and produce incorrect results
app/apis/selectricity_api.rb
app/models/selectricity_service.rb

Benjamin Mako Hill || Want to submit a patch?