AppendixG - Appendix G: HLA Exceptions HLA Exceptions The...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Appendix G: HLA Exceptions Beta Draft - Do not distribute © 2001, By Randall Hyde Page 1487 HLA Exceptions Appendix G The HLA Standard Library pro vides the follo wing e xception types 1 : ex.StringOv erflow HLA raises this e xception if you attempt to store too man y characters into preallocated string v ariable. The follo wing standard library routines can raise this e xception: pat.e xtract, strrealloc, stdin.gets, str .cp y , str .setstr , str .cat, str .substr , str .insert, console.gets, cStrT oStr , dT oStr , e80T oStr , hT oStr , u64T oStr , i64T oStr , qT oStr , r80T oStr , tbT oStr , wT oStr , date.print, date.toString, and date.a_toString. ex.StringIndexErr or HLA raises this e xception if a routine attempts to use an inde x that is be yond the last v alid character in a string. The follo wing standard library routines can raise this e xception: str .span2, str .rspan2, str .brk2, str .rbrk2, str .substr , str .a_substr , strT oFlt, StrT oi8, StrT oi16, StrT oi32, StrT oi64, StrT ou8, StrT ou16, StrT ou32, StrT ou64, StrT oh, StrT o w , StrT od, and StrT oq. ex.V alueOutOfRange HLA raises this e xception if an arithmetic o v erfl o w occurs, if an input parameter is out of range, or if user input is too great for the destination v ariable. The follo wing standard library routines can raise this e xception: ar g.v , ar g.delete, rand.urange, rand.range, stdin.geti8, stdin.geti16, stdin.geti32, stdin.geti64, stdin.getu8, stdin.getu16, stdin.getu32, stdin.getu64, stdin.geth, stdin.getw , stdin.getd, stdin.getq, stdin.getf, table.create, console.a_getRect, console.fi llRect, console.fi llRectAttr , console.getc, console.getRect, con - sole.gets, console.gotoxy , console.putRect, console.scrollDnRect, console.scrololUpRect, atof, atoh, atoi8, atoi16, atoi32, atoi64, atou8, atou16, atou32, atou64, e80T oStr , r80T oStr , StrT oi8, StrT oi16, StrT oi32, StrT oi64, StrT ou8, StrT ou16, StrT ou32, StrT ou64, StrT oh, StrT o w , StrT od, StrT oq, fi leio.getd, fi leio.geth, fi leio.getw , fi leio.getq, fi leio.geti8, fi leio.geti16, fi leio.geti32, fi leio.geti64, fi leio.getu8, fi leio.getu16, fi leio.getu32, fi leio.getu64, fi leio.pute80pad, fi leio.pute64pad, fi leio.pute32pad, fi leio.putr32P ad, fi leio.putr64P ad, and fi leio.putr80P ad. ex.IllegalChar Se v eral HLA routines raise this e xception if the y encounter a non-ASCII character (character code $80. .$FF) where a delimiter character is e xpected. Generally , you can treat this error as though it were a con v ersion error . Routines that raise this e xception include: atoh, atoi8, atoi16, atoi32, atoi64, atou8, atou16, atou32, and atou64. ex.Con
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

AppendixG - Appendix G: HLA Exceptions HLA Exceptions The...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online