Changeset 410 for trunk/Include/Classes/System/Collections
- Timestamp:
- Feb 23, 2008, 3:02:47 PM (17 years ago)
- Location:
- trunk/Include/Classes/System/Collections/Generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/Collections/Generic/Dictionary.ab
r403 r410 41 41 Virtual Function Item(key As Key) As T 42 42 If Object.ReferenceEquals(key, Nothing) Then 43 'Throw ArgumentNullError 44 debug 45 Exit Function 43 Throw New ArgumentNullException("key") 46 44 End If 47 45 … … 60 58 61 59 Throw New KeyNotFoundException 62 63 Return Nothing64 60 End Function 65 61 -
trunk/Include/Classes/System/Collections/Generic/KeyNotFoundException.ab
r403 r410 1 'System/Collections/Generic/KeyNotFoundException.ab 2 1 3 Namespace System 2 4 Namespace Collections … … 6 8 Class KeyNotFoundException 7 9 Inherits System.SystemException 10 Public 11 /*! 12 @biref コンストラクタ 13 */ 14 Sub KeyNotFoundException() 15 SystemException(GetType().FullName, Nothing) 16 HResult = ActiveBasic.AB_E_KEYNOTFOUND 17 End Sub 18 /*! 19 @biref コンストラクタ 20 @param[in] message エラーメッセージ 21 */ 22 Sub KeyNotFoundException(message As String) 23 SystemException(message, Nothing) 24 HResult = ActiveBasic.AB_E_KEYNOTFOUND 25 End Sub 26 /*! 27 @biref コンストラクタ 28 @param[in] message エラーメッセージ 29 @param[in] innerException 内部例外 30 */ 31 Sub KeyNotFoundException(message As String, innerException As Exception) 32 SystemException(message, innerException) 33 HResult = ActiveBasic.AB_E_KEYNOTFOUND 34 End Sub 8 35 End Class 9 36
Note:
See TracChangeset
for help on using the changeset viewer.