package database

import (
	
)
Error should be used for errors involving queries ran against the database
Optional: the line number
Query is a query excerpt
Err is a useful/helping error message for humans
OrigErr is the underlying error
	OrigErr error
}

func ( Error) () string {
	if len(.Err) == 0 {
		return fmt.Sprintf("%v in line %v: %s", .OrigErr, .Line, .Query)
	}
	return fmt.Sprintf("%v in line %v: %s (details: %v)", .Err, .Line, .Query, .OrigErr)