Error Handling for Linear Algebra Routines