Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8efe32126 | ||
|
|
18277e93ea |
19
.github/pull_request_template.md
vendored
Normal file
19
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
---
|
||||
|
||||
### Acceptance Checklist
|
||||
|
||||
- [ ] **Story**: Code is focused on the linked stories and solves a problem
|
||||
- One of:
|
||||
- [ ] **For Bugs**: A unit test is added or an existing one modified
|
||||
- [ ] **For Features**: New unit tests are added covering the new functions or modifications
|
||||
- [ ] Code Documentation changes are included for public interfaces and important / complex additions
|
||||
- [ ] External Documentation is included for API changes, or other external facing interfaces
|
||||
|
||||
### Review Checklist
|
||||
|
||||
- [ ] The code does not duplicate existing functionality that exists elsewhere
|
||||
- [ ] The code has been linted and follows team practices and style guidelines
|
||||
- [ ] The changes in the PR are relevant to the title
|
||||
- changes not related should be moved to a different PR
|
||||
- [ ] All errors or error handling is actionable, and informs the viewer on how to correct it
|
||||
32
ftp-srv.d.ts
vendored
32
ftp-srv.d.ts
vendored
@@ -41,6 +41,38 @@ export class FileSystem {
|
||||
getUniqueName(fileName: string): string;
|
||||
}
|
||||
|
||||
export class GeneralError extends Error {
|
||||
/**
|
||||
* @param message The error message.
|
||||
* @param code Default value is `400`.
|
||||
*/
|
||||
constructor(message: string, code?: number);
|
||||
}
|
||||
|
||||
export class SocketError extends Error {
|
||||
/**
|
||||
* @param message The error message.
|
||||
* @param code Default value is `500`.
|
||||
*/
|
||||
constructor(message: string, code?: number);
|
||||
}
|
||||
|
||||
export class FileSystemError extends Error {
|
||||
/**
|
||||
* @param message The error message.
|
||||
* @param code Default value is `400`.
|
||||
*/
|
||||
constructor(message: string, code?: number);
|
||||
}
|
||||
|
||||
export class ConnectorError extends Error {
|
||||
/**
|
||||
* @param message The error message.
|
||||
* @param code Default value is `400`.
|
||||
*/
|
||||
constructor(message: string, code?: number);
|
||||
}
|
||||
|
||||
export class FtpConnection extends EventEmitter {
|
||||
server: FtpServer;
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user