function setResource(resource) {
    if (typeof resource !== "string") {
        throw new ExtError("ERR_RESOURCE_MUST_BE_STRING", "Resource must be 'string' type");
    }
    this.message.resource = resource;