Changeset 605 for trunk/ab5.0/ablib/src/Classes/System/IO/Exception.ab
- Timestamp:
- Aug 21, 2008, 7:21:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/IO/Exception.ab
r584 r605 61 61 @brief Windowsエラー値を基にIOExceptionを投げる。 62 62 @param[in] message エラーメッセージ 63 @param[in] error エラーコード 63 64 @author Egtra 64 65 @date 2007/12/06 65 66 */ 66 67 Sub ThrowWinIOException(msg As String, error As DWord) 67 Throw New IOException(msg, HRESULT_FROM_WIN32(error))68 Throw GetWinIOException(msg, error) 68 69 End Sub 70 71 /*! 72 @brief Windowsエラー値を基にIOExceptionインスタンスを作成する。 73 @param[in] message エラーメッセージ 74 @param[in] error エラーコード 75 @return 作成されたIOExceptionインスタンス 76 @author Egtra 77 @date 2008/08/21 78 */ 79 Function GetWinIOException(msg As String, error As DWord) As IOException 80 Return New IOException(msg, HRESULT_FROM_WIN32(error)) 81 End Function 69 82 70 83 /*! … … 74 87 @date 2007/12/06 75 88 */ 76 Sub ThrowWinLastErrorIOException(msg As String)77 Throw New IOException(msg, HRESULT_FROM_WIN32(GetLastError()))89 Sub ThrowWinLastErrorIOException(msg = Nothing As String) 90 Throw GetWinLastErrorIOException(msg) 78 91 End Sub 92 93 94 /*! 95 @brief GetLastError()の値を基にIOExceptionインスタンスを作成する。 96 @param[in] message エラーメッセージ 97 @return 作成されたIOExceptionインスタンス 98 @author Egtra 99 @date 2008/08/21 100 */ 101 Function GetWinLastErrorIOException(msg As String) As IOException 102 Return New IOException(msg, HRESULT_FROM_WIN32(GetLastError())) 103 End Function 79 104 End Namespace 80 105
Note:
See TracChangeset
for help on using the changeset viewer.