API:Errors and warnings/es

From MediaWiki.org
Jump to navigation Jump to search

Si un módulo de la API generando un error, se mostrará un mensaje con el siguiente formato:

<error code="código" info="info" />

Donde código es reemplazado con un pequeño código de error (que necesita no ser único para el error) e info con una descripción más elaborada del error (que es única).

Mensajes de error en la documentación[edit]

Los mensajes de error están documentados de la siguiente forma:

  • code: apparams
    • info: prlevel may not be used without prtype

Que corresponde a:

<error code="apparams" info="prlevel may not be used without prtype" />

Mensajes de error estándar[edit]

Algunos mensajes de error genéricos son compartidos entre módulos. Si un módulo puede manejar ese error, es mencionado explícitamente en en su sección Possible errors.

  • code: unknownerror
    • info: Unknown error
  • code: unknownerror
    • info: Unknown error errorcode
  • code: unsupportednamespace
    • info: Pages in the Special namespace can't be edited
  • code: protectednamespace-interface
    • info: You're not allowed to edit interface messages
  • code: protectednamespace
    • info: You're not allowed to edit pages in the ``namespace'' namespace
  • code: customcssjsprotected
    • info: You're not allowed to edit custom CSS and JavaScript pages
  • code: cascadeprotected
    • info: The page you're trying to edit is protected because it's included in a cascade-protected page
  • code: protectedpage
    • info: The ``right'' right is required to edit this page
  • code: permissiondenied
    • info: Permission denied
  • code: confirmemail
    • info: You must confirm your e-mail address before you can edit
  • code: blocked
    • info: You have been blocked from editing
  • code: autoblocked
    • info: Your IP address has been blocked automatically, because it was used by a blocked user
  • code: ratelimited
    • info: You've exceeded your rate limit. Please wait some time and try again
  • code: readonly
    • info: The wiki is currently in read-only mode
  • code: badtoken
    • info: Invalid token
  • code: missingtitle
    • info: The page you requested doesn't exist
  • code: hookaborted
    • info: The modification you tried to make was aborted by an extension hook
  • code: nosuchuser
    • info: The user you specified doesn't exist
  • code: invalidtitle
    • info: Bad title ``title''
  • code: invaliduser
    • info: Invalid username ``username''