U E D R , A S I H C RSS

Ruby Language/Exception Handling

  1. RubyLanguage
  2. RubyLanguage/Class
  3. RubyLanguage/Container
  4. RubyLanguage/ExceptionHandling
  5. RubyLanguage/InputOutput



1. Exception

  • �� �����들� Exception �����를 ����받는��.
    • ���� ��� ��문� �� ����� �� �� �동�.
    • ���

2. Exception Handler

  • $! : ��러를 ��는 �� ��
  • rescue
    • �� ��문, rescue는 switch case문럼 동�. 맞는 ��문 ������ �� 매��.
    • begin�� ������ �면 rescue ��문�� ����롤�동��.
    • ��를 ����� ���면 retry면 ��.
    • ���� ��� �면 rescue는 ����� �는��.
    • ����� : rescue �������명
    • ��

 rescue Exception
   # �� 리 
 end
  • else
    • ���� ��� ������블럭
  • ensure
    • �� �� �������� ������블럭
    • ��바 finally�� ��
  • catch throw
    • �� �른
    • �� � throw를 ����를 ��� catch�� �볼 ���� ��를 ���.
    • throw�� �볼(��벨) ����� ��� ��문 바� �� ����.

3. Exception Raise

  • �� �����
  • Kernal.raise(��는 Kernal.fail)� ��를 ����

4. Exception Extend

  • �� �����를 ������ ����� �� �����를 ���� ���

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:27:56
Processing time 0.0166 sec