UNPKG

ithit.webdav.server

Version:

With IT Hit WebDAV Server Engine for Node.js you can create your own WebDAV server, add WebDAV support to your existing Node.js project or DAV-enable your CMS/DMS/CRM.

42 lines (39 loc) 1.74 kB
import { DavContextBase } from "./DavContextBase"; import { DavException } from "./DavException"; import { IHierarchyItem } from "./IHierarchyItem"; import { PropertyName } from "./PropertyName"; /** * Exception which contains errors for multiple items or properties. */ export declare class MultistatusException extends DavException { /** * Initializes new message. * @param message Error text. */ constructor(message?: string); /** * Addes property error. * @param mex Exception to merge with. * @param itemPath Item path for which property operation failed. * @param propertyName Property name for which operation failed. * @param exception Exception for failed operation. */ addInnerException(itemPath?: string, propertyName?: PropertyName, exception?: DavException, mex?: MultistatusException): void; /** * Writes exception to the output writer. * @param context Instance of {@link DavContextBase}. * @param item Instance of {@link IHierarchyItem}. * @param renderContent Whether content shall be written to output. * @remarks Full response shall be formed, including HTTP status and headers. */ render(context: DavContextBase, item: IHierarchyItem, renderContent: boolean): Promise<void>; /** * Writes exception as part of MultistatusException. * @param context Instance of {@link DavContextBase}. * @remarks * Only body shall be written. Text in Exception.message * shall be omitted because it will be written as part of {@link MultistatusException} exception. */ renderInline(writer: any, context: DavContextBase): void; private getResponses; }