mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
add exception for invalid parameter errors
This commit is contained in:
parent
6723c97de1
commit
443a524491
3 changed files with 14 additions and 2 deletions
|
|
@ -26,4 +26,5 @@ class ErrorCodes {
|
||||||
const FileIsADirectory = 'NT_STATUS_FILE_IS_A_DIRECTORY';
|
const FileIsADirectory = 'NT_STATUS_FILE_IS_A_DIRECTORY';
|
||||||
const NotADirectory = 'NT_STATUS_NOT_A_DIRECTORY';
|
const NotADirectory = 'NT_STATUS_NOT_A_DIRECTORY';
|
||||||
const SharingViolation = 'NT_STATUS_SHARING_VIOLATION';
|
const SharingViolation = 'NT_STATUS_SHARING_VIOLATION';
|
||||||
|
const InvalidParameter = 'NT_STATUS_INVALID_PARAMETER';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
src/Exception/InvalidParameterException.php
Normal file
10
src/Exception/InvalidParameterException.php
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
|
||||||
|
* This file is licensed under the Licensed under the MIT license:
|
||||||
|
* http://opensource.org/licenses/MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Icewind\SMB\Exception;
|
||||||
|
|
||||||
|
class InvalidParameterException extends InvalidRequestException {}
|
||||||
|
|
@ -39,7 +39,8 @@ class Parser {
|
||||||
ErrorCodes::DirectoryNotEmpty => '\Icewind\SMB\Exception\NotEmptyException',
|
ErrorCodes::DirectoryNotEmpty => '\Icewind\SMB\Exception\NotEmptyException',
|
||||||
ErrorCodes::FileIsADirectory => '\Icewind\SMB\Exception\InvalidTypeException',
|
ErrorCodes::FileIsADirectory => '\Icewind\SMB\Exception\InvalidTypeException',
|
||||||
ErrorCodes::NotADirectory => '\Icewind\SMB\Exception\InvalidTypeException',
|
ErrorCodes::NotADirectory => '\Icewind\SMB\Exception\InvalidTypeException',
|
||||||
ErrorCodes::SharingViolation => '\Icewind\SMB\Exception\FileInUseException'
|
ErrorCodes::SharingViolation => '\Icewind\SMB\Exception\FileInUseException',
|
||||||
|
ErrorCodes::InvalidParameter => '\Icewind\SMB\Exception\InvalidParameterException'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue