Ignore:
Timestamp:
Feb 16, 2009, 4:26:24 PM (15 years ago)
Author:
イグトランス (egtra)
Message:

UTF8Encodingクラスをとりあえず使える状態に。ただし、BOM出力はまだ不可能。
(#231)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Exception.ab

    r602 r682  
    1414Const AB_E_PLATFORMNOTSUPPORTED = &h80041539 '80131539
    1515Const AB_E_KEYNOTFOUND = &h80041577 '80131577
     16Const AB_E_ARITHMETIC = &h80040216 '80070216
     17Const AB_E_OVERFLOW = &h80041516 '80131516
    1618
    1719End Namespace
     
    3840MulticastNotSupportedException
    3941NullReferenceException
    40 OverflowException
    4142RankException
    4243StackOverflowException
     
    712713End Class
    713714
     715/*!
     716@brief  算術演算例外
     717@author Egtra
     718@date   2009/02/16
     719*/
     720Class ArithmeticException
     721    Inherits SystemException
     722Public
     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
     747End Class
     748
     749/*!
     750@brief  オーバーフロー例外
     751@author Egtra
     752@date   2009/02/16
     753*/
     754Class OverflowException
     755    Inherits ArithmeticException
     756Public
     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
     781End Class
    714782
    715783End Namespace
Note: See TracChangeset for help on using the changeset viewer.