From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e36d8ce24e5ba1cf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-27 05:05:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.esat.net!feeder.news.heanet.ie!not-for-mail Newsgroups: comp.lang.ada From: Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) Subject: Re: What does "raised ADA.IO_EXCEPTIONS.DATA_ERROR" mean? References: <397fbe9e.0301270232.39fb506a@posting.google.com> Reply-To: Colin_Paul_Gloster@ACM.org Message-ID: User-Agent: slrn/0.9.7.0 (SunOS) Organization: Dublin City University (DCU) Cache-Post-Path: ns2-ext.dcu.ie!unknown@camac.dcu.ie X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: 27 Jan 2003 13:05:14 GMT NNTP-Posting-Date: 27 Jan 2003 13:05:14 GMT NNTP-Posting-Host: 136.206.1.1 X-Trace: 1043672714 reader.news.heanet.ie 61611 [::ffff:136.206.1.1]:41994 Xref: archiver1.google.com comp.lang.ada:33452 Date: 2003-01-27T13:05:14+00:00 List-Id: Fatafa said today: "I ran a compiled Ada program and got back the error : raised ADA.IO_EXCEPTIONS.DATA_ERROR Does anyone know what this means?" When giving input to your program, you probably gave it something it was not designed to (e.g. maybe it needed a number and you typed in text). >From HTTP://WWW.AdaIC.org/standards/95lrm/html/RM-A-13.html : "[..] The exception Data_Error can be propagated by the procedure Read (or by the Read attribute) if the element read cannot be interpreted as a value of the required subtype. This exception is also propagated by a procedure Get (defined in the package Text_IO) if the input character sequence fails to satisfy the required syntax, or if the value input does not belong to the range of the required subtype. [..]"