• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. pop up for a program error

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14934
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pop up for a program error

KKANDOTH
KKANDOTH over 12 years ago

 Hi All,

 I want to build a program which has a user alert facility as soon as it find some error while executing. For example if there is a program like this  

procedure(testing()

a = "try"

b = 2

c=a*b

)  This program will find an error at line c = a*b. and throw a *ERROR ..... message in icfb.log. I want to have a pop up window which alert the user as soon as it exit. I am using a try1=errset(testing) now. According to try1 value , (t or nil) i can find if the program executed or not. but it will suppress the error message in ICFB.log

 Thank You,

Krishnan
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Krishnan,

    This does what you want:

    procedure(myErrorHandler(info)
      hiDisplayAppDBox(
       ?name 'myErrorDialog
       ?dboxBanner "Error occurred"
       ?dboxText info
       ?dialogType hicErrorDialog
       ?buttonLayout 'Close
       ?dialogStyle 'modal
      )
    )

    ilAddTopLevelErrorHandler('myErrorHandler)

    By the way, if you use errset, you can either pass t as the second argument to errset, and then it will still print the error message. Or you can get the message info by accessing errset.errset . For example:

    errset(testing() t)
    *Error* times: can't handle ("try" * 2)

    unless(errset(testing())
      printf("GOT THIS: %L\n" errset.errset)
    )

    GOT THIS: ("times" 0 t nil ("*Error* times: can't handle (\"try\" * 2)"))

    You can find out more on errset.errset in the documentation for errset().

    Regards,

    Andrew.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Krishnan,

    This does what you want:

    procedure(myErrorHandler(info)
      hiDisplayAppDBox(
       ?name 'myErrorDialog
       ?dboxBanner "Error occurred"
       ?dboxText info
       ?dialogType hicErrorDialog
       ?buttonLayout 'Close
       ?dialogStyle 'modal
      )
    )

    ilAddTopLevelErrorHandler('myErrorHandler)

    By the way, if you use errset, you can either pass t as the second argument to errset, and then it will still print the error message. Or you can get the message info by accessing errset.errset . For example:

    errset(testing() t)
    *Error* times: can't handle ("try" * 2)

    unless(errset(testing())
      printf("GOT THIS: %L\n" errset.errset)
    )

    GOT THIS: ("times" 0 t nil ("*Error* times: can't handle (\"try\" * 2)"))

    You can find out more on errset.errset in the documentation for errset().

    Regards,

    Andrew.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information