!
! bbutil.db
!
! Database for utility data, eg. error codes.
! This database is to be processed using dbio, not dbin.
!
!
database bbutil 0100 ! database version number
! New error codes can be defined at runtime via make statements
! in a runutil.db file. (Instantiations read at runtime
! do not have to immediately follow the template definition.)
!
! Instantiations processed at dbio run time (ie. those appearing
! in this file) do need to follow the template definition.
! Severity levels:
! 1 - informational
! 2 - warning
! 3 - severe warning (still continue)
! 4 - error; skip event
! 5 - severe error; terminate
incname bberr
dimension errcmax 200
template errc(errcmax) ! Error codes
char name ! string identifier
char desc ! description
int sev ! severity level
end template
! Define standard error codes
! Informational:
define errc "evcnt" "Event count" 1 ! Note new template instantiator, DEFINE
! ...
! Error - skip event:
define errc "div0" "Divide by zero" 4
template errint(errcmax) ! Auxiliary err code info, internal use only
int cnt ! occurrence count
end template
parameter ierr_info 1
parameter ierr_warn 2
parameter ierr_swarn 3
parameter ierr_err 4
parameter ierr_serr 5
parameter ierr_die 5
structure errpars
char name(5) "Info" "Warn" "SevereWarning" "Error" "SevereError"
end structure
end
|