Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Error Reporting
Topic Summary:
Created On: 25-Aug-2004 09:18
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 25-Aug-2004 09:18
User is offline View Users Profile Print this message


Hugh Johnson

Posts: 27
Joined: 5-Aug-2004

Hi,

I'm trying to re-direct errors from the edit DXL window to a window on my main GUI. I know you can use the noErrors() function to suppress error reporting in the DXL window, but this then involves using the lastError() function to check the last error recieved against a previous error to decide whether or not to display it. So i have some questions as follows:-

    Does noErrors supress all errors or just errors that occur on the next line of code - do you just need to call it once or before each line that you suspect could cause an error?

    Is thereany way of making a callback fire when an error occurs?


Cheers

Hugh


-------------------------
Hugh Johnson

Westland Helicopters Ltd.
myurl
Report this to a Moderator Report this to a Moderator
 25-Aug-2004 09:32
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

The dxl manual (V7.0SP1 page 606) says this of noErrors:


<< Switches off DXL run-time errors until lastError is called. Any function that can produce a
run-time error is affected. Instead of failing and halting when they discover an error condition, they
set an error message, which can be checked by the lastError function.
Calling this function resets the error message to null, so you must store any potential error messages
for reuse.
>>


... which nearly answers your first question. But it's not too clear on how many errors it's 'active' for. I'd guess at all of them, but you'll only see the most recent one when you call lastError.
So the answer to your question is (I think) that noErrors suppresses all errors, but you only get to see the last one that occurred before you call lastError. What happens about the effects of the errors in the meantime is anyone's guess...

Not sure (even less sure!) about the second question.

Paul.

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.