Forum Discussion

Deb_Allen_18's avatar
Deb_Allen_18
Historic F5 Account
Sep 07, 2006

findclass tcl ERR on no entry found

Any idea why findclass would throw an error on no entry found instead of just not returning a value...?

I'm working around by using catch to keep it from erroring out, but is this expected behavuiour?

set row [findclass [getfield [HTTP::host] ":" 1]:[TCP::local_port] $::myRedirects]
results in this error:"ERR: No entry for company.com in myRedirects class"

TIA

/deb
No RepliesBe the first to reply