Example #1
0
func (l *L1L2Orca) Error(req common.Request, reqType common.RequestType, err error) {
	opaque := uint32(0)
	if req != nil {
		opaque = req.Opq()
	}

	l.res.Error(opaque, reqType, err)
}
Example #2
0
func (l *L1OnlyOrca) Error(req common.Request, reqType common.RequestType, err error) {
	var opaque uint32
	var quiet bool

	if req != nil {
		opaque = req.GetOpaque()
		quiet = req.IsQuiet()
	}

	l.res.Error(opaque, reqType, err, quiet)
}