gitlab.com/evatix-go/core@v1.3.55/defaulterr/defaulterr.go (about)

     1  package defaulterr
     2  
     3  import "gitlab.com/evatix-go/core/errcore"
     4  
     5  var (
     6  	Marshalling = errcore.
     7  			MarshallingFailedType.
     8  			ErrorNoRefs("Cannot marshal object to serialize form.")
     9  
    10  	UnMarshalling = errcore.
    11  			UnMarshallingFailedType.
    12  			ErrorNoRefs("Cannot unmarshal data to object form.")
    13  
    14  	UnMarshallingPlusCannotFindingEnumMap = errcore.
    15  						UnMarshallingFailedType.
    16  						ErrorNoRefs(
    17  			"Cannot find in the enum map. " +
    18  				"Reference data given as : ")
    19  
    20  	MarshallingFailedDueToNilOrEmpty = errcore.
    21  						UnMarshallingFailedType.
    22  						ErrorNoRefs("Cannot marshal to serialize data because of nil or empty object.")
    23  
    24  	UnmarshallingFailedDueToNilOrEmpty = errcore.
    25  						UnMarshallingFailedType.
    26  						ErrorNoRefs("Cannot unmarshal to object because of nil or empty serialized data.")
    27  
    28  	CannotProcessNilOrEmpty = errcore.
    29  				CannotBeNilOrEmptyType.
    30  				ErrorNoRefs("Cannot process nil or empty.")
    31  
    32  	OutOfRange = errcore.
    33  			OutOfRangeType.
    34  			ErrorNoRefs("Cannot process out of range data.")
    35  
    36  	NegativeDataCannotProcess = errcore.
    37  					CannotBeNegativeType.
    38  					ErrorNoRefs("Cannot process negative values.")
    39  
    40  	NilResult = errcore.
    41  			NullResultType.
    42  			ErrorNoRefs("Cannot process nil result.")
    43  
    44  	UnexpectedValue = errcore.
    45  			UnexpectedValueType.
    46  			ErrorNoRefs("Cannot process unexpected value or values.")
    47  
    48  	CannotRemoveFromEmptyCollection = errcore.
    49  					CannotRemoveIndexesFromEmptyCollectionType.
    50  					ErrorNoRefs("Cannot process request: cannot remove from empty collection.")
    51  
    52  	CannotConvertStringToByte = errcore.
    53  					FailedToConvertType.
    54  					ErrorNoRefs("Cannot convert string to byte.")
    55  
    56  	AttributeNull = errcore.
    57  			NullResultType.
    58  			ErrorNoRefs("attribute is nil!")
    59  	JsonResultNull = errcore.
    60  			CannotBeNilOrEmptyType.
    61  			ErrorNoRefs("JsonResult is given as nil")
    62  
    63  	KeyNotExistInMap = errcore.
    64  				KeyNotExistInMapType.
    65  				ErrorNoRefs("key doesn't exist in the map.")
    66  )