http urls monitor.

error.go 266B

123456789101112131415161718
  1. package linker
  2. import (
  3. "fmt"
  4. "time"
  5. )
  6. type SystemError struct {
  7. when time.Time
  8. file string
  9. line int
  10. what string
  11. }
  12. func (e SystemError) Error() string {
  13. return fmt.Sprintf("[datetime]:%v [file]:%v [line]:%v [message]:%v", e.when, e.file, e.line, e.what)
  14. }