Files
uni/third/semester1/CT326: Programming III/notes/_minted-CT326-Notes/7FF8F113C277E23074D32DD80259BC1667C30541BBFC1CABB82AC82DF38DC1A5.pygtex

13 lines
741 B
Plaintext

\begin{Verbatim}[commandchars=\\\{\},codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8\relax}]
\PYG{k}{try}\PYG{+w}{ }\PYG{p}{\PYGZob{}}
\PYG{+w}{ }\PYG{c+c1}{// statements that may throw an exception}
\PYG{p}{\PYGZcb{}}
\PYG{k}{catch}\PYG{+w}{ }\PYG{p}{(}\PYG{n}{ExceptionType}\PYG{+w}{ }\PYG{n}{exceptionReference}\PYG{p}{)}\PYG{+w}{ }\PYG{p}{\PYGZob{}}
\PYG{+w}{ }\PYG{c+c1}{// statemetns to process the exception}
\PYG{p}{\PYGZcb{}}
\PYG{c+c1}{// a `try` is followed by any number of `catch` blocks}
\PYG{k}{catch}\PYG{+w}{ }\PYG{p}{(}\PYG{n}{ExceptionType}\PYG{+w}{ }\PYG{n}{exceptionReference}\PYG{p}{)}\PYG{+w}{ }\PYG{p}{\PYGZob{}}
\PYG{+w}{ }\PYG{c+c1}{// statemetns to process the exception}
\PYG{p}{\PYGZcb{}}
\end{Verbatim}