← Back to Patent Explorer
US5911069A Expired / Lapsed US ⏱️ 0.0 years remaining

Exception handling techniques for native methods bound to SOM classes

Assignee: Apple Inc
•
Filing: 1996-09-30
•
Granted: 1999-06-08
•
Expires: 2016-09-30
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract When an object-oriented program calls a native SOM method, a data structure is created for handling exceptions. If an exception occurs during the execution of the SOM method, data values relating to the exception are placed in the data structure, and it is labeled to identify its type. This label is used to select a class within the object-oriented program having properties similar to the exception. An instance of this class is allocated, and the exception data is copied into the object, which can then be used to generate an exception within the object-oriented program.

Inventors

  • 👤 Patrick C. Beard

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-11-06 19:40
CPC Classifications
G; G06; G06F; G06F9/00; G06F9/06; G06F9/44; G06F9/445; G06F9/44521; G06F9/448; G06F9/4488; G06F2209/00; G06F2209/48; G06F2209/481

Claims Analysis

Total Claims: 24
Claim 1
Independent Claim 133 words
A method for mapping exceptions which occur during a method implemented in a first programming language to exceptions that can be recognized in a second, object-oriented programming language, comprising the steps of: calling a method that is implemented in the first language; generating a pointer to a data structure that is employed by methods in the first language, and passing said pointer to a method that is implemented in the first language; determining whether said data structure contains data which indicates that an exception has occurred; identifying a class of objects in the second language which corresponds to an exception that has occurred; creating an instantiation of the identified class; copying data which identifies the exception that has occurred into said instantiation; and generating an exception in said second language from said instantiation.
Claim 2
Independent Claim 133 words
A method for mapping exceptions which occur during a method implemented in a first programming language to exceptions that can be recognized in a second, object-oriented programming language, comprising the steps of: calling a method that is implemented in the first language; generating a pointer to a data structure that is employed by methods in the first language, and passing said pointer to a method that is implemented in the first language; determining whether said data structure contains data which indicates that an exception has occurred; identifying a class of objects in the second language which corresponds to an exception that has occurred; creating an instantiation of the identified class; copying data which identifies the exception that has occurred into said instantiation; and generating an exception in said second language from said instantiation.
Claim 3
Dependent Claim 16 words
The method of claim 1, wherein said first programming language is a System Object Model kernel.
Claim 4
Dependent Claim 23 words
The method of claim 2 wherein said data structure is an environment data structure which is employed in the System Object Model kernel.
Claim 5
Dependent Claim 25 words
The method of claim 1 wherein said second language contains a plurality of different classes which respectively correspond to different exceptions in said first language.
Claim 6
Dependent Claim 132 words
In a computer which executes a program written in a first, object-oriented programming language, a system for handling exceptions which occur during a method carried out via a program in a second programming language, comprising: means for creating a data structure that is employed by the program in the second language to store data relating to exceptions which occur during the execution of methods; means for examining said data structure to determine whether it contains data relating to an exception; means for selecting a class in said first programming language which corresponds to an exception having data stored in said data structure; and means for copying exception data from said data structure to an instantiation of the selected class to thereby enable the program in the first language to handle the exception.
Claim 7
Dependent Claim 132 words
In a computer which executes a program written in a first, object-oriented programming language, a system for handling exceptions which occur during a method carried out via a program in a second programming language, comprising: means for creating a data structure that is employed by the program in the second language to store data relating to exceptions which occur during the execution of methods; means for examining said data structure to determine whether it contains data relating to an exception; means for selecting a class in said first programming language which corresponds to an exception having data stored in said data structure; and means for copying exception data from said data structure to an instantiation of the selected class to thereby enable the program in the first language to handle the exception.
Claim 8
Dependent Claim 21 words
The system of claim 5 wherein said data structure creating means is included in said program in said first programming language.
Claim 9
Dependent Claim 19 words
The system of claim 5 wherein said examining means is included in said program in said first programming language.
Claim 10
Dependent Claim 16 words
The system of claim 5, wherein said second programming language is a System Object Model kernel.
Claim 11
Dependent Claim 23 words
The system of claim 8 wherein said data structure is an environment data structure which is employed in the System Object Model kernel.
Claim 12
Dependent Claim 25 words
The system of claim 5 wherein said first language contains a plurality of different classes which respectively correspond to different exceptions in said second language.
Claim 13
Dependent Claim 118 words
A computer-readable storage medium containing a program written in an object-oriented program language, said program comprising: means for creating a data structure that is employed by a program in an other language to store data relating to exceptions which occur during the execution of methods in said other program language; means for examining said data structure to determine whether it contains data relating to an exception; means for selecting a class in said object-oriented programming language which corresponds to an exception having data stored in said data structure; and means for copying exception data from said data structure to an instantiation of the selected class to thereby enable the program in the object-oriented language to handle the exception.
Claim 14
Dependent Claim 118 words
A computer-readable storage medium containing a program written in an object-oriented program language, said program comprising: means for creating a data structure that is employed by a program in an other language to store data relating to exceptions which occur during the execution of methods in said other program language; means for examining said data structure to determine whether it contains data relating to an exception; means for selecting a class in said object-oriented programming language which corresponds to an exception having data stored in said data structure; and means for copying exception data from said data structure to an instantiation of the selected class to thereby enable the program in the object-oriented language to handle the exception.
Claim 15
Dependent Claim 18 words
The computer-readable storage medium of claim 11 wherein said second programming language is a System Object Model kernel.
Claim 16
Dependent Claim 25 words
The computer-readable storage medium of claim 12 wherein said data structure is an environment data structure which is employed in the System Object Model kernel.
Claim 17
Dependent Claim 27 words
The computer-readable storage medium of claim 11 wherein said object-oriented language contains a plurality of different classes which respectively correspond to different exceptions in said other language.
Claim 18
Independent Claim 153 words
A method for handling exceptions within an object-oriented program that occur during a method implemented outside of said program, comprising the steps of: calling a method from within said object-oriented program that is implemented outside of said program; generating, within said object-oriented program, a pointer to a data structure that is employed by a program in which the called method is implemented, and passing said pointer to the called method; upon receiving a return from the called method, determining within said object-oriented program whether said data structure contains data which indicates that an exception occurred during the implementation of the called method; identifying a class of objects in said object-oriented program which corresponds to an exception that has occurred; creating an instantiation of the identified class within said object-oriented program; copying data which identifies the exception that has occurred into said instantiation; and generating an exception in said object-oriented program from said instantiation.
Claim 19
Independent Claim 153 words
A method for handling exceptions within an object-oriented program that occur during a method implemented outside of said program, comprising the steps of: calling a method from within said object-oriented program that is implemented outside of said program; generating, within said object-oriented program, a pointer to a data structure that is employed by a program in which the called method is implemented, and passing said pointer to the called method; upon receiving a return from the called method, determining within said object-oriented program whether said data structure contains data which indicates that an exception occurred during the implementation of the called method; identifying a class of objects in said object-oriented program which corresponds to an exception that has occurred; creating an instantiation of the identified class within said object-oriented program; copying data which identifies the exception that has occurred into said instantiation; and generating an exception in said object-oriented program from said instantiation.
Claim 20
Dependent Claim 15 words
The method of claim 15, wherein said called method is a System Object Model method.
Claim 21
Dependent Claim 23 words
The method of claim 16 wherein said data structure is an environment data structure which is employed in a System Object Model kernel.
Claim 22
Dependent Claim 127 words
A computer-readable storage medium containing a program written in an object-oriented program language which executes the following steps: issuing a call to a method that is executed outside off said program; creating a data structure that is employed by said method to store data relating to exceptions which occur during the execution of said method; examining said data structure upon receiving a return from the called methods to determine whether it contains data relating to an exception that occurred during the implementation of the called method; selecting a class in said object-oriented programming language which corresponds to an exception having data stored in said data structure; copying exception data from said data structure to an instantiation of the selected class; and handling the exception from said instantiation.
Claim 23
Dependent Claim 127 words
A computer-readable storage medium containing a program written in an object-oriented program language which executes the following steps: issuing a call to a method that is executed outside off said program; creating a data structure that is employed by said method to store data relating to exceptions which occur during the execution of said method; examining said data structure upon receiving a return from the called methods to determine whether it contains data relating to an exception that occurred during the implementation of the called method; selecting a class in said object-oriented programming language which corresponds to an exception having data stored in said data structure; copying exception data from said data structure to an instantiation of the selected class; and handling the exception from said instantiation.
Claim 24
Dependent Claim 27 words
The computer-readable storage medium of claim 18 wherein said object-oriented language contains a plurality of different classes which respectively correspond to different exceptions in said other language.

References Cited (Backward Citations)

US5555418A Cited
US5367685A Cited
US5732270A Cited
US5724503A Cited
US5778369A Cited
US5761513A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 2002-06-07 2002-12-07 2003-06-08 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 2006-06-07 2006-12-07 2007-06-08 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 2010-06-07 2010-12-07 2011-06-08 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag