15. Создание и обработка ошибок
new EDBError( Error.DB_NOT_AUTHENTICATED )
new EEntExists( Error.DB_DUPLICATE_KEY )
new ENoEnt( "No worker found" )
new EWrongValue( "Handler not found" )
new ENetError( Error.NET_UNREACH )
new ENoEnt( Error.JSRPC_METHOD_NOT_FOUND )
if( (err instanceof ECustom) && err.is("config") ) { … }
if( err.is(EEntBadState) && err.is("cluster is off") ) { …
}
new ECustom([ "Config #%d for instance '%s' does not exists!", cfg_ver, inst.ident ])