mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
<?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;
|
|
|
|
class Exception extends \Exception {
|
|
}
|
|
|
|
class ConnectException extends Exception {
|
|
}
|
|
|
|
class ConnectionError extends ConnectException {
|
|
}
|
|
|
|
class AuthenticationException extends ConnectException {
|
|
}
|
|
|
|
class InvalidHostException extends ConnectException {
|
|
}
|
|
|
|
class AccessDeniedException extends ConnectException {
|
|
}
|
|
|
|
class InvalidRequestException extends Exception {
|
|
}
|
|
|
|
class NotFoundException extends InvalidRequestException {
|
|
}
|
|
|
|
class AlreadyExistsException extends InvalidRequestException {
|
|
}
|
|
|
|
class NotEmptyException extends InvalidRequestException {
|
|
}
|
|
|
|
class InvalidTypeException extends InvalidRequestException {
|
|
}
|
|
|
|
class ErrorCodes {
|
|
/**
|
|
* connection errors
|
|
*/
|
|
const LogonFailure = 'NT_STATUS_LOGON_FAILURE';
|
|
const BadHostName = 'NT_STATUS_BAD_NETWORK_NAME';
|
|
const Unsuccessful = 'NT_STATUS_UNSUCCESSFUL';
|
|
const ConnectionRefused = 'NT_STATUS_CONNECTION_REFUSED';
|
|
|
|
const PathNotFound = 'NT_STATUS_OBJECT_PATH_NOT_FOUND';
|
|
const NoSuchFile = 'NT_STATUS_NO_SUCH_FILE';
|
|
const ObjectNotFound = 'NT_STATUS_OBJECT_NAME_NOT_FOUND';
|
|
const NameCollision = 'NT_STATUS_OBJECT_NAME_COLLISION';
|
|
const AccessDenied = 'NT_STATUS_ACCESS_DENIED';
|
|
const DirectoryNotEmpty = 'NT_STATUS_DIRECTORY_NOT_EMPTY';
|
|
const FileIsADirectory = 'NT_STATUS_FILE_IS_A_DIRECTORY';
|
|
const NotADirectory = 'NT_STATUS_NOT_A_DIRECTORY';
|
|
}
|