Allow access to the error number in S7Exception

When handling S7Exceptions it can be useful to know what the exact error
number is.