Changeset 682 for trunk/ab5.0/ablib/src/Classes/System/Exception.ab
- Timestamp:
- Feb 16, 2009, 4:26:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Exception.ab
r602 r682 14 14 Const AB_E_PLATFORMNOTSUPPORTED = &h80041539 '80131539 15 15 Const AB_E_KEYNOTFOUND = &h80041577 '80131577 16 Const AB_E_ARITHMETIC = &h80040216 '80070216 17 Const AB_E_OVERFLOW = &h80041516 '80131516 16 18 17 19 End Namespace … … 38 40 MulticastNotSupportedException 39 41 NullReferenceException 40 OverflowException41 42 RankException 42 43 StackOverflowException … … 712 713 End Class 713 714 715 /*! 716 @brief 算術演算例外 717 @author Egtra 718 @date 2009/02/16 719 */ 720 Class ArithmeticException 721 Inherits SystemException 722 Public 723 /*! 724 @biref コンストラクタ 725 */ 726 Sub ArithmeticException() 727 SystemException("ArithmeticException", Nothing) 728 HResult = ActiveBasic.AB_E_ARITHMETIC 729 End Sub 730 /*! 731 @biref コンストラクタ 732 @param[in] message エラーメッセージ 733 */ 734 Sub ArithmeticException(message As String) 735 SystemException(message, Nothing) 736 HResult = ActiveBasic.AB_E_ARITHMETIC 737 End Sub 738 /*! 739 @biref コンストラクタ 740 @param[in] message エラーメッセージ 741 @param[in] innerException 内部例外 742 */ 743 Sub ArithmeticException(message As String, innerException As Exception) 744 SystemException(message, innerException) 745 HResult = ActiveBasic.AB_E_ARITHMETIC 746 End Sub 747 End Class 748 749 /*! 750 @brief オーバーフロー例外 751 @author Egtra 752 @date 2009/02/16 753 */ 754 Class OverflowException 755 Inherits ArithmeticException 756 Public 757 /*! 758 @biref コンストラクタ 759 */ 760 Sub OverflowException() 761 ArithmeticException("OverflowException", Nothing) 762 HResult = ActiveBasic.AB_E_OVERFLOW 763 End Sub 764 /*! 765 @biref コンストラクタ 766 @param[in] message エラーメッセージ 767 */ 768 Sub OverflowException(message As String) 769 ArithmeticException(message, Nothing) 770 HResult = ActiveBasic.AB_E_OVERFLOW 771 End Sub 772 /*! 773 @biref コンストラクタ 774 @param[in] message エラーメッセージ 775 @param[in] innerException 内部例外 776 */ 777 Sub OverflowException(message As String, innerException As Exception) 778 ArithmeticException(message, innerException) 779 HResult = ActiveBasic.AB_E_OVERFLOW 780 End Sub 781 End Class 714 782 715 783 End Namespace
Note:
See TracChangeset
for help on using the changeset viewer.