ADO Error 객체
Error 객체
ADO Error 객체는 단일 작업(프로バイ더와 관련)에 대한 데이터 액세스 오류의 상세 정보를 포함합니다.
ADO는 각 오류마다 Error 객체를 생성합니다. 각 Error 객체는 특정 오류의 상세 정보를 포함하며, Error 객체는 Errors 집합에 저장됩니다. 이러한 오류에 접근하려면 특정 연결을 참조해야 합니다.
오류 집합을 순회합니다:
<% for each objErr in objConn.Errors response.write("<p>") response.write("설명: ") response.write(objErr.Description & "<br />") response.write("도움 상황: ") response.write(objErr.HelpContext & "<br />") response.write("도움 파일: ") response.write(objErr.HelpFile & "<br />") response.write("원시 오류: ") response.write(objErr.NativeError & "<br />") response.write("오류 번호: ") response.write(objErr.Number & "<br />") response.write("오류 원천: ") response.write(objErr.Source & "<br />") response.write("SQL 상태: ") response.write(objErr.SQLState & "
") response.write(objErr.SQLState & "<br />") response.write("</p>") next
%>
문법
objErr.property
objErr.property | 속성 |
---|---|
설명 | Description |
오류 설명을 반환합니다. | HelpContext |
Microsoft Windows help system에서 특정 주제의 내용 ID를 반환합니다. | HelpFile |
Microsoft Windows help system에서 도움말 파일의 전체 경로를 반환합니다. | NativeError |
프로バイ더나 데이터 소스에서 오류 코드를 반환합니다. | Number |
오류를 식별할 수 있는 독특한 숫자를 반환합니다. | Source |
오류가 발생한 객체나 애플리케이션의 이름을 반환합니다. | SQLState |