.


:




:

































 

 

 

 





, , . c, , . . , , . .

# - . , , , , . . , , , . : . . , , : , .

# , , , . , . # - # .

 

# . Exception, System. , Exception. Exception SystemException ApplicationException, :

- , #;

- , #.

: try, tch, finall, throw, . tch, finall try.

, , try -. try :

- , tr. . , , ;

- tch, , ;

- finall , .

, .

- . , , . , try.

- catch - .

- , . . . # - .

- , throw.

- , try -, finally.

tch, finall, .

, try catch. ; try/catch - :

try {

// , .

}

catch ( 1 ) {

// 1

}

catch ( 21 ) {

// 2

}

. catch, . try/catch- , try - , catch -. try. tch , . , . , catch -, ( ). , , .

, . , try - , catch - . . 1 , System.

1

ArrayTypeMismatchException
DivideByZeroException
IndexOutOfRangeException
InvalidCastException
OutofMemoryException
OverflowException
NullReferenceException
StackoverflowException

, . catch - . , , .

, , finally ( ), , try. , , , , , , .





:


: 2017-02-28; !; : 595 |


:

:

, .
==> ...

1585 - | 1363 -


© 2015-2024 lektsii.org - -

: 0.012 .