Displaying 1 result from an estimated 1 matches for "e4a5da16".
2006 Jun 30
2
best practice: raise an exception or return false
just wondering how others deal with invalid/illegal operations on their
models?
until now, I''ve simply been returning true or false depending on wether or
not the operation succeeded, but that doesn''t tell the calling function why
the operation failed (if it failed).
I could use custom exceptions, but is it good practice to raise an exception
on every invalid action or just