IP Library Granted Patent US 7,281,166
Granted Patent B1
US 7,281,166 · App. 10/448,678 · Granted Oct 9, 2007

User-customizable input error handling

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,281,166
App. No.
10/448,678
Granted
Oct 9, 2007
Kind
B1
Abstract

A programmer to set his own input error handler after examining the context where the error occurs by utilizing a set error handler subroutine. The context may be provided by the system library to the user's handler routine so it can make a better judgment on how to proceed next. The customizable nature of the invention allows programmers to suit the error handling to individual application needs.

Claims (40)

1. A method for handling an input error in a computer system using an input/output (I/O) library, the method comprising:

determining, at run time by said input/output library, if there is an error in input data of a data file for a user computer program, wherein said data file is on a logical unit of said computer system; and said input data of said data file is processed by said user computer program during execution of said user computer program;

passing, by said input/output library, information regarding context of said error to a user subroutine designated by said user, wherein said user subroutine handles said error upon said determining finding said error in said input data;

calling, by said user subroutine, an error-handler for said error in said input data, said error handler making a change to said error in said input data in said data file wherein said data file includes changed input data in place of said error in said input data; and

repeating said determining and passing for said changed input data in said data file by said input/output library.

2. The method of claim 1 , wherein said information regarding context includes an identification of a logical unit of said input data.

3. The method of claim 1 , wherein said information regarding context includes an identification of said user-subroutine.

4. The method of claim 1 , wherein said information regarding context includes an error indicator.

5. The method of claim 4 , wherein said error indicator is a non-zero value if said error exists, said non-zero value identifying a type of error.

6. The method of claim 1 , wherein said change to said input data is replacement of a character in said input data which causes said error with a character provided by said error-handler.

7. The method of claim 1 , wherein said change to said input data is erasing of a buffer holding an input field in which said error occurred.

8. The method of claim 7 , wherein said repeating includes repeating beginning with a beginning of said input field.

9. The method of claim 1 , wherein said change to said input data is assignment of a value to an input field in which said error occurred, said value indicated by said error-handler.

10. A method for creating a user-customizable error handler in a computer system using an I/O library, the method comprising:

providing a set error handler subroutine, said set error handler subroutine taking as input an identification of an input data file, a user-defined subroutine name, and an error indicator, said set error handler subroutine setting an error handler corresponding to said user-defined subroutine name to be called for errors in said input data file wherein said error indicator identifies an error setting up said user-customizable error handler; and

providing a get error handler subroutine, said get error handler subroutine taking as input said identification of an input data file, a function address, and an error indicator for an error in said input data file, said get error handler subroutine returning the current I/O error handler.

11. An apparatus for handling an input error in a computer system using an input/output (I/O) library, the apparatus comprising:

means for determining, at run time by said input/output library, if there is an error in input data of a data file for a user computer program, wherein said data file is on a logical unit of said computer system; and said input data of said data file is processed by said user computer program during execution of said user computer program;

means for passing, by said input/output library, information regarding context of said error to a user subroutine designated by said user, wherein said user subroutine handles said error upon said determining finding said error in said input data;

means for calling, by said user subroutine, an error-handler for said error in said input data, said error handler making a change to said error in said input data in said data file wherein said data file includes changed input data in place of said error in said input data; and

means for repeating said determining and passing for said changed input data in said data file by said input/output library.

12. The apparatus of claim 11 , wherein said information regarding context includes an identification of a logical unit of said input data.

13. The apparatus of claim 11 , wherein said information regarding context includes an identification of said user-subroutine.

14. The apparatus of claim 11 , wherein said information regarding context includes an error indicator.

15. The apparatus of claim 14 , wherein said error indicator is a non-zero value if said error exists, said non-zero value identifying a type of error.

16. The apparatus of claim 11 , wherein said change to said input data is replacement of a character in said input data which causes said error with a character provided by said error-handler.

17. The apparatus of claim 11 , wherein said change to said input data is erasing of a buffer holding an input field in which said error occurred.

18. The apparatus of claim 17 , wherein said means for repeating includes means for repeating beginning with a beginning of said input field.

19. The apparatus of claim 11 , wherein said change to said input data is assignment of a value to an input field in which said error occurred, said value indicated by said error-handler.

20. An apparatus for creating a user-customizable error handler in a computer system using an I/O library, the apparatus comprising:

means for providing a set error handler subroutine, said set error handler subroutine taking as input an identification of an input data file, a user-defined subroutine name, and an error indicator, said set error handler subroutine setting an error handler corresponding to said user-defined subroutine name to be called for errors in said input data file wherein said error indicator identifies an error setting up said user-customizable error handler; and

means for providing a get error handler subroutine, said get error handler subroutine taking as input said identification of an input data file, a function address, and an error indicator for an error in said input data file, said get error handler subroutine returning the current I/O error handler.

21. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method for handling an input error in a computer system using an input/output (I/O) library, the method comprising:

determining, at run time by said input/output library, if there is an error in input data of a data file for a user computer program, wherein said data file is on a logical unit of said computer system; and said input data of said data file is processed by said user computer program during execution of said user computer program;

passing, by said input/output library, information regarding context of said error to a user subroutine designated by said user, wherein said user subroutine handles said error upon said determining finding said error in said input data;

calling, by said user subroutine, an error-handler for said error in said input data, said error handler making a change to said error in said input data in said data file wherein said data file includes changed input data in place of said error in said input data; and

repeating said determining and passing for said changed input data in said data file by said input/output library.

22. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform a method for creating a user-customizable error handler in a computer system using an I/O library, the method comprising:

providing a set error handler subroutine, said set error handler subroutine taking as input an identification of an input data file, a user-defined subroutine name, and an error indicator, said set error handler subroutine setting an error handler corresponding to said user-defined subroutine name to be called for errors in said input data file wherein said error indicator identifies an error setting up said user-customizable error handler; and

providing a get error handler subroutine, said get error handler subroutine taking as input said identification of an input data file, a function address, and an error indicator for an error in said input data file, said get error handler subroutine returning the current I/O error handler.

Assignments (1)
MERGER AND CHANGE OF NAME Recorded Dec 16, 2015
From: ORACLE USA, INC.; SUN MICROSYSTEMS, INC.; ORACLE AMERICA, INC.
To: ORACLE AMERICA, INC.
Reel/Frame 037302/0843 →