Common exception definitions for MATLAB