mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Adding NOT_IMPLEMENTED error at storage level
This commit is contained in:
@@ -20,6 +20,7 @@ package rater
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
"menteslibres.net/gosexy/redis"
|
||||
//"log"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
@@ -103,7 +104,7 @@ func (rs *GosexyStorage) SetDestination(dest *Destination) (err error) {
|
||||
|
||||
// Extracts destinations from StorDB on specific tariffplan id
|
||||
func (rs *GosexyStorage) GetTPDestination( tpid, destTag string ) (*Destination, error) {
|
||||
return nil, nil
|
||||
return nil, errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
}
|
||||
|
||||
func (rs *GosexyStorage) GetActions(key string) (as Actions, err error) {
|
||||
|
||||
@@ -20,6 +20,7 @@ package rater
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
"labix.org/v2/mgo"
|
||||
"labix.org/v2/mgo/bson"
|
||||
@@ -148,7 +149,7 @@ func (ms *MongoStorage) SetDestination(dest *Destination) error {
|
||||
|
||||
// Extracts destinations from StorDB on specific tariffplan id
|
||||
func (ms *MongoStorage) GetTPDestination( tpid, destTag string ) (*Destination, error) {
|
||||
return nil, nil
|
||||
return nil, errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
}
|
||||
|
||||
func (ms *MongoStorage) GetActions(key string) (as Actions, err error) {
|
||||
|
||||
@@ -20,6 +20,7 @@ package rater
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"errors"
|
||||
"github.com/garyburd/redigo/redis"
|
||||
//"log"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
@@ -95,7 +96,7 @@ func (rs *RedigoStorage) SetDestination(dest *Destination) (err error) {
|
||||
|
||||
// Extracts destinations from StorDB on specific tariffplan id
|
||||
func (rs *RedigoStorage) GetTPDestination( tpid, destTag string ) (*Destination, error) {
|
||||
return nil, nil
|
||||
return nil, errors.New(utils.ERR_NOT_IMPLEMENTED)
|
||||
}
|
||||
|
||||
func (rs *RedigoStorage) GetActions(key string) (as Actions, err error) {
|
||||
|
||||
@@ -9,6 +9,7 @@ const (
|
||||
POSTPAID = "postpaid"
|
||||
PSEUDOPREPAID = "pseudoprepaid"
|
||||
RATED = "rated"
|
||||
ERR_NOT_IMPLEMENTED = "NOT_IMPLEMENTED"
|
||||
ERR_SERVER_ERROR = "SERVER_ERROR"
|
||||
ERR_DST_NOT_FOUND = "DESTINATION_NOT_FOUND"
|
||||
ERR_MANDATORY_IE_MISSING = "MANDATORY_IE_MISSING"
|
||||
|
||||
Reference in New Issue
Block a user