github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/os/persiaos/errors-storage.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package persiaos
     4  
     5  import (
     6  	er "../../error"
     7  	"../../protocol"
     8  )
     9  
    10  const errorEnglishStorageDomain = "PersiaOS - Storage"
    11  const errorPersianStorageDomain = "سیستم عامل پارس - ذخیره سازی"
    12  
    13  // Errors - Storage
    14  var (
    15  	ErrStorageDeviceProblem = er.New("urn:giti:storage.persiaos:error:device-problem").SetDetail(protocol.LanguageEnglish, errorEnglishStorageDomain, "Device Problem",
    16  		"Requested record exist on the device that had problem to access it!",
    17  		"",
    18  		"").Save()
    19  
    20  	ErrStorageNotExist = er.New("urn:giti:storage.persiaos:error:not-exist").SetDetail(protocol.LanguageEnglish, errorEnglishStorageDomain, "Not Exist",
    21  		"Requested record not exist",
    22  		"",
    23  		"").Save()
    24  
    25  	ErrStorageNotAuthorize = er.New("urn:giti:storage.persiaos:error:not-authorize").SetDetail(protocol.LanguageEnglish, errorEnglishStorageDomain, "Not Authorized",
    26  		"Requested record belong to other app owner and this app can't access to it",
    27  		"",
    28  		"").Save()
    29  )