Skip to content

Instantly share code, notes, and snippets.

@ProjectMoon
ProjectMoon / errorhandling.js
Created October 10, 2012 13:12
errorhandling
//A third way.
//In a business logic module. Note: replace "internal" methods with your own logic (redis, mongodb, etc).
function getBlogByGuid(id, callback) {
internalLoad(id, function(err, post) {
if (err) return callback(err);
});
}
function deleteDocumentById(id, callback) {
internalDelete(id, function(err) {
using System;
using System.Collections.Generic;
using CRBM2.Domain.Core;
using System.Linq;
using Framework.Serialization;
using CRBM2.Domain.Prepaid;
using System.Runtime.Serialization;
namespace CRBM2.Domain.Prepaid
{
[Serializable]