Errors and error handling Sample Clauses

Errors and error handling. Some of the microscopes functions may return (raise) an error. This can happen due to a physical reason, i.e. if the requested action is not possible at that moment. For example, you cannot ask the stage to perform a GoTo_, when it is wobbling or already moving. The high tension may not be switched on or raised under certain conditions, and so forth. You may also have given parameters that are out of range (in that case the stage for example would not move either). Generally, calls to another process (from your script to the TEM server) may fail occasionally. So be aware and do the error handling, typically by a try except end; If an error is raised, then Exception.Message will be filled with detailed information about the error, if available. You can use this information for your error handling. See the error handling in the code examples above.
AutoNDA by SimpleDocs
Errors and error handling. Some of the microscopes functions may return (raise) an error. This can happen due to a physical reason, i.e. if the requested action is not possible at that moment. For example, you cannot ask the stage to perform a GoTo(), when it is wobbling or already moving. The high tension may not be switched on or raised under certain conditions and so forth. You may also have given parameters that are out of range (in that case the stage for example would not move either). Generally, calls to another process (ie from your script to the TEM server) may fail occasionally. So be aware and do the error handling - otherwise your application might die! If an error is raised, then a global Error object (Err) will be filled with detailed information about the error, if available. You can use this information for your error handling. Usually you will get an error code (a number), a textual description and maybe a text string with the name of the source that raised the error. If you want to do the error handling, you have to insert the following statement into the code: On Error Resume Next This statement makes VBScript ignoring errors and is valid for the code to follow until the end of the function or subroutine. You then got the chance to ask the error object for its content. An example: Suppose your HTML page contains a form with a button named ‘cmdGoto’, and a text area named ‘TextErrors’. Pressing the button triggers movement of the stage to a new position that is calculated from the old one -just as an example, you could invent some code here: <FORM ID="theForm"> ... <INPUT TYPE=BUTTON NAME="cmdGoto" VALUE="Go" ONCLICK="OnGoto()">
Errors and error handling. Some of the microscopes functions may return (raise) an error. This can happen due to a physical reason, i.e. if the requested action is not possible at that moment. For example, you cannot ask the stage to perform a GoTo(), when it is wobbling or already moving. The high tension may not be switched on or raised under certain conditions and so forth. You may also have given parameters that are out of range (in that case the stage for example would not move either). Generally, calls to another process (from your script to the TEM server) may fail occasionally. There are also some failures that may be VisualBasic-specific (see below). So be aware and do the error handling - otherwise your script might die! If an error is raised, then a global Error object (Err) will be filled with detailed information about the error, if available. You can use this information for your error handling. Usually you will get an error code (a number), a textual description and maybe a text string with the name of the source that raised the error. The following piece of code gives an example: (Suppose you have a form with at least a button named ‘cmdGoto’ and a textbox named ‘txtDisplay’. As reaction on a button-click a new stage position is calculated -just as an example, you could invent some code here- and the stage is requested to move to that position. In case of an error the content of the error object is shown in the textbox): Private Sub cmdGoto_Click() Dim NewPos as TEMScripting.StagePosition Dim OldPos as TEMScripting.Stageposition Dim MyStage as TEMScripting.Stage On Error GoTo ComError: Set MyStage = MyTem.Stage Set OldPos = MyStage.Position CalculateNewPosition OldPos, NewPos MyStage.Goto NewPos, axisXY Exit Sub ComError: txtDisplay.Text = _ txtDisplay.Text & "Error # " & Hex(Err.Number) & _ " was generated by " & Err.Source & vbCrLf _ & Err.Description & vbCrLf txtDisplay.SelStart = Len(txtDisplay.Text) End Sub At the end of the error handling you can either do nothing (as in the above example), that is leave the function or add either Resume which jumps back to the line in your code where the error occurred or Resume Next which jumps back to the next line in your code Goto MyLabel jump to a specified label, here named MyLabel. Another possibility is to use the On Error Resume Next ... On Error Goto 0 statements. This allows you either to ignore errors or ask for the contents of the Err object after each relevant statement and do the error handling ‘in place’. If yo...

Related to Errors and error handling

  • Technology Errors and Omissions The Contractor shall maintain during the term of the Contract Technology Errors and Omissions Insurance for claims for damages arising from computer related services including, but not limited to, the following: consulting, data processing, programming, system integration, software development, installation, distribution or maintenance, systems analysis or design, training, staffing or other support services, any electronic equipment, computer software developed, manufactured, distributed, licensed, marketed or sold. If the policy is written on a claims made basis, Contractor must provide to OGS proof that the policy provides the option to purchase an Extended Reporting Period (“tail coverage”) providing coverage for no less than one (1) year after work is completed in the event that coverage is cancelled or not renewed. This requirement applies to both primary and excess liability policies, as applicable.

  • Maintenance of Hazard Insurance and Errors and Omissions and Fidelity Coverage (a) The Servicer shall cause to be maintained for each Mortgage Loan fire insurance with extended coverage on the related Mortgaged Property in an amount which is at least equal to the least of (i) the outstanding principal balance of such Mortgage Loan, (ii) the amount necessary to fully compensate for any damage or loss to the improvements that are a part of such property on a replacement cost basis and (iii) the maximum insurable value of the improvements which are a part of such Mortgaged Property, in each case in an amount not less than such amount as is necessary to avoid the application of any coinsurance clause contained in the related hazard insurance policy. The Servicer shall also cause to be maintained fire insurance with extended coverage on each REO Property in an amount which is at least equal to the lesser of (i) the maximum insurable value of the improvements which are a part of such property and (ii) the outstanding principal balance of the related Mortgage Loan at the time it became an REO Property, plus accrued interest at the Mortgage Rate and related Servicing Advances. The Servicer will comply in the performance of this Agreement with all reasonable rules and requirements of each insurer under any such hazard policies. Any amounts to be collected by the Servicer under any such policies (other than amounts required to be deposited in the Escrow Account and applied to the restoration or repair of the property subject to the related Mortgage or amounts to be released to the Mortgagor in accordance with the procedures that the Servicer would follow in servicing loans held for its own account, subject to the terms and conditions of the related Mortgage and Mortgage Note) shall be deposited in the Collection Account, subject to withdrawal pursuant to Section 3.11. Any cost incurred by the Servicer in maintaining any such insurance shall not, for the purpose of calculating distributions to the Trustee, be added to the unpaid principal balance of the related Mortgage Loan, notwithstanding that the terms of such Mortgage Loan so permit. It is understood and agreed that no earthquake or other additional insurance is to be required of any Mortgagor other than pursuant to such applicable laws and regulations as shall at any time be in force and as shall require such additional insurance. If the Mortgaged Property or REO Property is at any time in an area identified in the Federal Register by the Federal Emergency Management Agency as having special flood hazards and flood insurance has been made available, the Servicer will cause to be maintained a flood insurance policy in respect thereof. Such flood insurance shall be in an amount equal to the lesser of (i) the unpaid principal balance of the related Mortgage Loan and (ii) the maximum amount of such insurance available for the related Mortgaged Property under the national flood insurance program (assuming that the area in which such Mortgaged Property is located is participating in such program). In the event that the Servicer shall obtain and maintain a blanket policy with an insurer either (i) acceptable to Fannie Mae or Freddie Mac or (ii) having a general policy rating of A:VX xx xexxxr in Xxxx'x (or such other rating that is comparable to such rating) insuring against hazard losses on all of the Mortgage Loans, it shall conclusively be deemed to have satisfied its obligations as set forth in the first two sentences of this Section 3.13, it being understood and agreed that such policy may contain a deductible clause, in which case the Servicer shall, in the event that there shall not have been maintained on the related Mortgaged Property or REO Property a policy complying with the first two sentences of this Section 3.13, and there shall have been one or more losses which would have been covered by such policy, deposit to the Collection Account from its own funds the amount not otherwise payable under the blanket policy because of such deductible clause. In connection with its activities as administrator and servicer of the Mortgage Loans, the Servicer agrees to prepare and present, on behalf of itself and the Trustee, claims under any such blanket policy in a timely fashion in accordance with the terms of such policy. (b) The Servicer shall keep in force during the term of this Agreement a policy or policies of insurance covering errors and omissions for failure in the performance of the Servicer's obligations under this Agreement, which policy or policies shall be in such form and amount that would meet the requirements of Fannie Mae or Freddie Mac if it were the purchaser of the Mortgage Loanx. Xxx Servicex xxxxx also maintain a fidelity bond in the form and amount that would meet the requirements of Fannie Mae or Freddie Mac, unless the Servicer has obtained a waiver of xxxx requiremxxxx xxom Fannie Mae or Freddie Mac. The Servicer shall provide the Trustee upon xxxxxxt with cxxxxx xf any such insurance policies and fidelity bond. The Servicer shall be deemed to have complied with this provision if an Affiliate of the Servicer has such errors and omissions and fidelity bond coverage and, by the terms of such insurance policy or fidelity bond, the coverage afforded thereunder extends to the Servicer. Any such errors and omissions policy and fidelity bond shall by its terms not be cancelable without thirty days' prior written notice to the Trustee. The Servicer shall also cause each Subservicer to maintain a policy of insurance covering errors and omissions and a fidelity bond which would meet such requirements.

  • Maintenance of Insurance Policies; Errors and Omissions and Fidelity Coverage (a) In the case of each Serviced Mortgage Loan or Serviced Loan Combination, the Master Servicer shall use reasonable efforts consistent with the Servicing Standard to cause the related Borrower to maintain (including identifying the extent to which a Borrower is maintaining insurance coverage and, if such Borrower does not so maintain, the Master Servicer will itself cause to be maintained with Qualified Insurers having the Required Claims-Paying Ratings) for the related Mortgaged Property (x) a fire and casualty extended coverage insurance policy, which does not provide for reduction due to depreciation, in an amount that is at least equal to the lesser of (i) the full replacement cost of improvements securing such Serviced Mortgage Loan or Serviced Loan Combination or (ii) the outstanding principal balance of such Serviced Mortgage Loan or Serviced Loan Combination, but, in any event, in an amount sufficient to avoid the application of any co-insurance clause and (y) all other insurance coverage (including but not limited to coverage for damage resulting from acts of terrorism) as is required or (subject to the Servicing Standard) that the lender is entitled to reasonably require, subject to applicable law, under the related Mortgage Loan Documents; provided that all of the following conditions and/or limitations shall apply: (A) the Master Servicer shall not be required to maintain any earthquake or environmental insurance policy on any Mortgaged Property securing a Serviced Mortgage Loan or Serviced Loan Combination unless such insurance policy was in effect at the time of the origination of such Serviced Mortgage Loan or Serviced Loan Combination pursuant to the terms of the related Mortgage Loan Documents and is available at commercially reasonable rates and the Trustee has an insurable interest; (B) if and to the extent that any Serviced Mortgage Loan or Serviced Loan Combination grants the lender thereunder any discretion (by way of consent, approval or otherwise) as to the insurance provider from whom the related Borrower is to obtain the requisite insurance coverage, the Master Servicer shall (to the extent consistent with the Servicing Standard) use efforts consistent with the Servicing Standard to cause the related Borrower to obtain the requisite insurance coverage from Qualified Insurers that, in each case, have the Required Claims-Paying Ratings at the time such insurance coverage is obtained; (C) the Master Servicer shall have no obligation beyond using its reasonable efforts consistent with the Servicing Standard to cause the Borrower under any Serviced Mortgage Loan to maintain the insurance required to be maintained or that the lender is entitled to reasonably require, subject to applicable law, under the related Mortgage Loan Documents; (D) in no event shall the Master Servicer be required to cause the Borrower under any Serviced Mortgage Loan to maintain, or itself obtain, insurance coverage that the Master Servicer has determined is either (i) not available at any rate or (ii) not available at commercially reasonable rates and the related hazards are not at the time commonly insured against at the then-available rates for properties similar to the related Mortgaged Property and located in or around the region in which the related Mortgaged Property is located;

  • Maintenance of Fidelity Bond and Errors and Omissions Insurance The Company shall maintain with responsible companies, at its own expense, a blanket Fidelity Bond and an Errors and Omissions Insurance Policy, with broad coverage on all officers, employees or other persons acting in any capacity requiring such persons to handle funds, money, documents or papers relating to the Mortgage Loans ("Company Employees"). Any such Fidelity Bond and Errors and Omissions Insurance Policy shall be in the form of the Mortgage Banker's Blanket Bond and shall protect and insure the Company against losses, including forgery, theft, embezzlement, fraud, errors and omissions and negligent acts of such Company Employees. Such Fidelity Bond and Errors and Omissions Insurance Policy also shall protect and insure the Company against losses in connection with the release or satisfaction of a Mortgage Loan without having obtained payment in full of the indebtedness secured thereby. No provision of this Section 4.12 requiring such Fidelity Bond and Errors and Omissions Insurance Policy shall diminish or relieve the Company from its duties and obligations as set forth in this Agreement. The minimum coverage under any such Fidelity Bond and Errors and Omissions Insurance Policy shall be acceptable to Xxxxxx Mae or Xxxxxxx Mac. Upon the request of any Purchaser, the Company shall cause to be delivered to such Purchaser a certificate of insurance for such Fidelity Bond and Errors and Omissions Insurance Policy and a statement from the surety and the insurer that such Fidelity Bond and Errors and Omissions Insurance Policy shall in no event be terminated or materially modified without 30 days' prior written notice to the Purchaser.

  • Errors and Omissions All reports, files and other documents prepared and submitted by Contractor shall be complete and shall be carefully checked by the professional(s) identified by Contractor as project manager and key personnel attached hereto, prior to submission to the County. Contractor agrees that County review is discretionary and Contractor shall not assume that the County will discover errors and/or omissions. If the County discovers any errors or omissions prior to approving Contractor’s reports, files and other written documents, the reports, files or documents will be returned to Contractor for correction. Should the County or others discover errors or omissions in the reports, files or other written documents submitted by the Contractor after County approval thereof, County approval of Contractor’s reports, files or documents shall not be used as a defense by Contractor in any action between the County and Contractor, and the reports, files or documents will be returned to Contractor for correction.

  • ERRORS AND OMISSIONS RELATED TO DATA Board errors and retroactive adjustments shall be the responsibility of the Board.

  • No Errors, etc The representations and warranties of the Company under this Agreement shall be deemed to have been made again on the Closing Date and shall then be true and correct in all material respects.

  • Errors/Omissions The Engineer shall make revisions to the work authorized in this contract which are necessary to correct errors or omissions appearing therein, when required to do so by the State. No additional compensation shall be paid for this work.

  • Fidelity Bond and Errors and Omissions Insurance The Servicer shall keep in force during the term of this Agreement a Fidelity Bond and Errors and Omissions Insurance Policy. Such Fidelity Bond and Errors and Omissions Insurance shall be maintained with recognized insurers and shall be in such form and amount as would permit the Servicer to be qualified as a Xxxxxx Xxx or Xxxxxxx Mac seller-servicer. The Servicer shall be deemed to have complied with this provision if an affiliate of the Servicer has such errors and omissions and fidelity bond coverage and, by the terms of such insurance policy or fidelity bond, the coverage afforded thereunder extends to the Servicer. The Servicer shall furnish to the Master Servicer or Trustee a copy of each such bond and insurance policy if (i) the Master Servicer or Trustee so requests and (ii) the Servicer is not an affiliate of Xxxxxx Brothers Inc. at the time of such request.

  • COMPLIANCE WITH POLICIES AND PROCEDURES During the period that Executive is employed with the Company hereunder, Executive shall adhere to the policies and standards of professionalism set forth in the policies and procedures of the Company and IAC as they may exist from time to time.

Draft better contracts in just 5 minutes Get the weekly Law Insider newsletter packed with expert videos, webinars, ebooks, and more!