Next: RM 11 5 28 Suppression of Checks, Previous: RM 10 2 1 12 Consistent Representation, Up: Implementation Advice [Contents][Index]
"
Exception_Messageby default andException_Informationshould produce information useful for debugging.Exception_Messageshould be short, about one line.Exception_Informationcan be long.Exception_Messageshould not include theException_Name.Exception_Informationshould include both theException_Nameand theException_Message."
Followed. For each exception that doesn’t have a specified
Exception_Message, the compiler generates one containing the location
of the raise statement. This location has the form ’file_name:line’, where
file_name is the short file name (without path information) and line is the line
number in the file. Note that in the case of the Zero Cost Exception
mechanism, these messages become redundant with the Exception_Information that
contains a full backtrace of the calling sequence, so they are disabled.
To disable explicitly the generation of the source location message, use the
Pragma Discard_Names.