Emab question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What is the best way to add a little bit of functionality to the
ExceptionManager.Publish(Exception) method? I just want to add a database
insert into the method, but I want everything else to do what it normally
does.

Thanks...sonny
 
Sonny,

You have options:

1) You can just modify the Publish() method to perform the database insert.
2) Create a custom publisher to do your database insert and update your
config file.

I'm not sure what the purpose is for your database insert, but if you can
give me more details I can potentially give you better options.

Jorge
 
Jorge,

Thanks for your response. I was just trying to follow industry norm on how
to use these app blocks.

I want to log to the event log, but also throw an error into my error table
in my database so I can make queries for errors.

After some investigation, I figured out how to create my own publisher that
is called in addition to the default publisher. I'm assuming this is how the
app block was intended to be used. If I'm wrong, please let me know.

Thanks...sonny
 
Back
Top