Catch mismatch-exceptions with size and diagonal values.