| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using System.Collections.Generic; |
| | 6 | | using System.Text; |
| | 7 | |
|
| | 8 | | namespace Azure.Storage.Files.DataLake |
| | 9 | | { |
| | 10 | | internal class DataLakeErrors |
| | 11 | | { |
| | 12 | | public static ArgumentException EntityIdAndInvalidAccessControlType(string s) |
| 2 | 13 | | => new ArgumentException($"AccessControlType must be User or Group if entityId is specified. Value is \"{s} |
| | 14 | |
|
| | 15 | | public static ArgumentException PathAccessControlItemStringInvalidLength(string s) |
| 4 | 16 | | => new ArgumentException($"{nameof(s)} should have 3 or 4 parts delimited by colons. Value is \"{s}\""); |
| | 17 | |
|
| | 18 | | public static ArgumentException PathAccessControlItemStringInvalidPrefix(string s) |
| 2 | 19 | | => new ArgumentException($"If {nameof(s)} is 4 parts, the first must be \"default\". Value is \"{s}\""); |
| | 20 | |
|
| | 21 | | public static ArgumentException PathPermissionsOctalInvalidLength(string s) |
| 2 | 22 | | => new ArgumentException($"{nameof(s)} must be 4 characters. Value is \"{s}\""); |
| | 23 | |
|
| | 24 | | public static ArgumentException PathPermissionsOctalInvalidFirstDigit(string s) |
| 2 | 25 | | => new ArgumentException($"First digit of {nameof(s)} must be 0 or 1. Value is \"{s}\""); |
| | 26 | |
|
| | 27 | | public static ArgumentException PathPermissionsSymbolicInvalidLength(string s) |
| 2 | 28 | | => new ArgumentException($"{nameof(s)} must be 9 or 10 characters. Value is \"{s}\""); |
| | 29 | |
|
| | 30 | | public static ArgumentException RolePermissionsSymbolicInvalidCharacter(string s) |
| 1608 | 31 | | => new ArgumentException($"Role permission contains an invalid character. Value is \"{s}\""); |
| | 32 | |
|
| | 33 | | public static ArgumentException RolePermissionsSymbolicInvalidLength(string s) |
| 8 | 34 | | => new ArgumentException($"Role permission must be 3 characters. Value is \"{s}\""); |
| | 35 | | } |
| | 36 | | } |