Adding NOT_IMPLEMENTED error at storage level

This commit is contained in:
DanB
2013-06-12 12:33:06 +02:00
parent a254242b46
commit ee7bd686bd
4 changed files with 7 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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"