mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
refactored errors
This commit is contained in:
@@ -22,7 +22,6 @@ import (
|
||||
"bytes"
|
||||
"database/sql"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
@@ -46,7 +45,7 @@ func (self *SQLStorage) Close() {
|
||||
}
|
||||
|
||||
func (self *SQLStorage) Flush(placeholder string) (err error) {
|
||||
return errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
return utils.ErrNotImplemented
|
||||
}
|
||||
|
||||
func (self *SQLStorage) GetKeysForPrefix(prefix string) ([]string, error) {
|
||||
@@ -562,7 +561,7 @@ func (self *SQLStorage) SetTpAccountActions(aas []TpAccountAction) error {
|
||||
}
|
||||
|
||||
func (self *SQLStorage) LogCallCost(cgrid, source, runid string, cc *CallCost) error {
|
||||
return errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
return utils.ErrNotImplemented
|
||||
}
|
||||
|
||||
func (self *SQLStorage) GetCallCostLog(cgrid, source, runid string) (*CallCost, error) {
|
||||
@@ -636,7 +635,7 @@ func (self *SQLStorage) SetCdr(cdr *StoredCdr) error {
|
||||
}
|
||||
|
||||
func (self *SQLStorage) SetRatedCdr(storedCdr *StoredCdr) error {
|
||||
return errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
return utils.ErrNotImplemented
|
||||
}
|
||||
|
||||
func (self *SQLStorage) GetStoredCdrs(qryFltr *utils.CdrsFilter) ([]*StoredCdr, int64, error) {
|
||||
|
||||
Reference in New Issue
Block a user